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:11Robert BurkeRobert BurkeScore: 20,364Success
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:1117,88366,393,57315,736,76602,256,896
2Oct 6, 2023 09:1217,93975,415,46715,786,17602,265,088
3Oct 6, 2023 09:1217,96180,825,16115,805,32402,260,992
4Oct 6, 2023 09:1117,99682,214,51115,836,12602,260,992
5Oct 6, 2023 09:1118,01094,329,80315,848,91802,256,896
6Oct 6, 2023 09:1118,02197,891,62515,858,82702,252,800
7Oct 6, 2023 09:1118,04589,782,56215,879,82002,256,896
8Oct 6, 2023 09:1218,07266,297,55515,903,60402,260,992
9Oct 6, 2023 09:1118,12193,018,19815,946,26802,273,280
10Oct 6, 2023 09:1120,34448,073,53215,914,0001,989,0002,281,472
11Oct 6, 2023 09:1120,35042,215,90916,914,000994,0002,531,328
12Oct 6, 2023 09:1120,35039,088,39615,919,0001,989,0002,281,472
13Oct 6, 2023 09:1120,35245,557,74815,920,0001,990,0002,281,472
14Oct 6, 2023 09:1220,35341,242,54116,916,000995,0002,424,832
15Oct 6, 2023 09:1120,35542,247,39915,922,0001,990,0002,281,472
16Oct 6, 2023 09:1120,35547,453,01815,922,0001,990,0002,281,472
17Oct 6, 2023 09:1220,35742,381,76415,924,0001,990,0002,412,544
18Oct 6, 2023 09:1120,36045,156,25415,927,0001,990,0002,281,472
19Oct 6, 2023 09:1120,36446,130,27615,929,0001,991,0002,281,472
20Oct 6, 2023 09:1220,36447,531,37117,920,00002,281,472
21Oct 6, 2023 09:1120,36534,007,86316,926,000995,0002,420,736
22Oct 6, 2023 09:1220,36541,268,18315,930,0001,991,0002,408,448
23Oct 6, 2023 09:1120,36841,670,32916,870,0001,054,0002,420,736
24Oct 6, 2023 09:1220,36839,209,69315,933,0001,991,0002,416,640
25Oct 6, 2023 09:1220,37340,441,18615,936,0001,992,0002,281,472
26Oct 6, 2023 09:1120,37640,154,59615,939,0001,992,0002,281,472
27Oct 6, 2023 09:1120,37842,062,06416,937,000996,0002,412,544
28Oct 6, 2023 09:1120,38046,466,85415,942,0001,992,0002,416,640
29Oct 6, 2023 09:1120,38537,497,47916,943,000996,0002,412,544
30Oct 6, 2023 09:1120,39541,242,15815,954,0001,994,0002,281,472
31Oct 6, 2023 09:1220,40141,827,54015,959,0001,994,0002,408,448
32Oct 6, 2023 09:1120,42737,377,56615,979,0001,997,0002,424,832
33Oct 6, 2023 09:1220,45038,344,19415,997,0001,999,0002,281,472
34Oct 6, 2023 09:1120,45635,380,78816,001,0002,000,0002,281,472
35Oct 6, 2023 09:1220,49145,537,76816,029,0002,003,0002,281,472
36Oct 6, 2023 09:1120,73041,296,66417,229,0001,013,0002,281,472