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 listDec 28, 2022 02:42Robert BurkeRobert BurkeScore: 20,151Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 02:4219,64051,635,35817,282,82302,232,320
2Dec 28, 2022 02:4219,66078,589,56617,300,79502,224,128
3Dec 28, 2022 02:4219,74676,620,71617,376,07902,232,320
4Dec 28, 2022 02:4220,10142,763,92816,649,0001,040,0002,535,424
5Dec 28, 2022 02:4220,10643,687,86117,693,00002,273,280
6Dec 28, 2022 02:4220,12444,679,21816,668,0001,041,0002,400,256
7Dec 28, 2022 02:4220,15142,235,88316,690,0001,043,0002,396,160
8Dec 28, 2022 02:4220,15243,644,44215,648,0002,086,0002,383,872
9Dec 28, 2022 02:4220,16642,243,79516,703,0001,043,0002,387,968
10Dec 28, 2022 02:4220,34539,289,81715,915,0001,989,0002,535,424
11Dec 28, 2022 02:4220,35339,430,09816,916,000995,0002,490,368
12Dec 28, 2022 02:4220,36937,409,45216,930,000995,0002,392,064