Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listMay 12, 2024 16:41Ivan BessonovIvan BessonovScore: 43,759Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 12, 2024 16:4140,512107,438,44735,650,35802,260,992
2May 12, 2024 16:4140,588103,971,34335,717,42402,256,896
3May 12, 2024 16:4140,62295,196,48635,747,52502,252,800
4May 12, 2024 16:4143,60358,046,93638,371,00002,289,664
5May 12, 2024 16:4143,70161,332,04238,457,00002,277,376
6May 12, 2024 16:4143,73463,871,98737,474,0001,012,0002,277,376
7May 12, 2024 16:4143,75961,050,36337,495,0001,013,0002,289,664
8May 12, 2024 16:4143,78264,970,18237,515,0001,013,0002,281,472
9May 12, 2024 16:4143,80260,327,66237,532,0001,014,0002,387,968
10May 12, 2024 16:4143,91068,632,45337,625,0001,016,0002,359,296
11May 12, 2024 16:4143,91859,638,96337,631,0001,017,0002,277,376
12May 12, 2024 16:4144,00064,835,71137,702,0001,018,0002,289,664