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 listFeb 15, 2024 12:59Robert BurkeRobert BurkeScore: 21,666Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 15, 2024 12:5917,13870,348,16415,081,60902,265,088
2Feb 15, 2024 12:5917,14189,649,40115,084,02502,260,992
3Feb 15, 2024 12:5917,16074,572,60515,100,73802,256,896
4Feb 15, 2024 12:5921,57638,761,96416,989,0001,998,0002,281,472
5Feb 15, 2024 12:5921,62740,785,49618,031,0001,001,0002,416,640
6Feb 15, 2024 12:5921,65340,868,57218,053,0001,002,0002,281,472
7Feb 15, 2024 12:5921,66643,615,84217,059,0002,007,0002,281,472
8Feb 15, 2024 12:5921,68541,080,28317,075,0002,008,0002,412,544
9Feb 15, 2024 12:5921,70043,798,78217,086,0002,010,0002,416,640
10Feb 15, 2024 12:5921,71545,270,79617,098,0002,011,0002,412,544
11Feb 15, 2024 12:5921,83540,061,63117,193,0002,022,0002,412,544
12Feb 15, 2024 12:5921,83646,160,95717,194,0002,022,0002,408,448