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 listOct 6, 2023 09:19Robert BurkeRobert BurkeScore: 20,357Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 09:1917,94883,036,84815,794,26302,248,704
2Oct 6, 2023 09:1917,94890,949,94815,794,29902,252,800
3Oct 6, 2023 09:1918,00275,983,23215,842,08602,260,992
4Oct 6, 2023 09:1918,00384,527,55215,843,06402,256,896
5Oct 6, 2023 09:1918,00884,180,09015,847,36602,260,992
6Oct 6, 2023 09:1918,05158,150,02215,884,55102,265,088
7Oct 6, 2023 09:1920,34236,364,24316,848,0001,053,0002,281,472
8Oct 6, 2023 09:1920,34841,539,75315,917,0001,989,0002,510,848
9Oct 6, 2023 09:1920,35042,783,59315,919,0001,989,0002,281,472
10Oct 6, 2023 09:1920,35045,332,20916,914,000994,0002,416,640
11Oct 6, 2023 09:1920,35041,037,57615,919,0001,989,0002,514,944
12Oct 6, 2023 09:1920,35747,267,96816,919,000995,0002,412,544
13Oct 6, 2023 09:1920,35743,920,37317,914,00002,416,640
14Oct 6, 2023 09:1920,35948,460,29415,926,0001,990,0002,424,832
15Oct 6, 2023 09:1920,37042,298,49215,935,0001,991,0002,281,472
16Oct 6, 2023 09:1920,37542,519,15115,938,0001,992,0002,281,472
17Oct 6, 2023 09:1920,37644,468,01216,935,000996,0002,281,472
18Oct 6, 2023 09:1920,38643,454,55117,940,00002,281,472
19Oct 6, 2023 09:1920,40639,486,14616,960,000997,0002,281,472
20Oct 6, 2023 09:1920,41035,692,39315,966,0001,995,0002,281,472
21Oct 6, 2023 09:1920,42037,535,75416,972,000998,0002,408,448
22Oct 6, 2023 09:1920,42645,066,35015,978,0001,997,0002,510,848
23Oct 6, 2023 09:1920,44246,131,91515,991,0001,998,0002,281,472
24Oct 6, 2023 09:1920,46842,380,45217,012,0001,000,0002,281,472