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 listNov 30, 2022 11:53apuxbtapuxbtScore: 34,130Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 30, 2022 11:5333,96457,301,27028,892,000996,0002,265,088
2Nov 30, 2022 11:5333,96658,222,82327,898,0001,992,0002,265,088
3Nov 30, 2022 11:5334,01359,717,88528,899,0001,032,0002,379,776
4Nov 30, 2022 11:5334,01761,578,41527,940,0001,995,0002,265,088
5Nov 30, 2022 11:5334,08960,825,83028,999,000999,0002,265,088
6Nov 30, 2022 11:5334,10755,594,99729,014,0001,000,0002,265,088
7Nov 30, 2022 11:5334,13056,598,20428,032,0002,002,0002,265,088
8Nov 30, 2022 11:5334,16362,192,58529,061,0001,002,0002,260,992
9Nov 30, 2022 11:5334,18056,813,66428,073,0002,005,0002,265,088
10Nov 30, 2022 11:5335,39692,059,08831,148,83702,240,512
11Nov 30, 2022 11:5335,399105,115,10131,150,94702,232,320
12Nov 30, 2022 11:5335,48097,048,69831,222,66702,232,320