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:14Robert BurkeRobert BurkeScore: 20,356Success
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:1417,92977,909,66615,777,88702,273,280
2Oct 6, 2023 09:1417,98879,288,97315,829,68202,265,088
3Oct 6, 2023 09:1417,99378,188,53915,833,79202,265,088
4Oct 6, 2023 09:1418,00171,022,88615,840,62802,260,992
5Oct 6, 2023 09:1418,01576,785,91015,853,56502,256,896
6Oct 6, 2023 09:1418,02689,148,63515,862,94302,252,800
7Oct 6, 2023 09:1420,24346,196,56917,814,00002,281,472
8Oct 6, 2023 09:1420,33845,782,01615,909,0001,988,0002,281,472
9Oct 6, 2023 09:1420,34543,261,32315,915,0001,989,0002,514,944
10Oct 6, 2023 09:1420,34943,212,04715,918,0001,989,0002,281,472
11Oct 6, 2023 09:1420,35241,155,49515,920,0001,990,0002,510,848
12Oct 6, 2023 09:1420,35546,361,96916,917,000995,0002,281,472
13Oct 6, 2023 09:1420,35645,321,86415,923,0001,990,0002,420,736
14Oct 6, 2023 09:1420,35935,445,52916,921,000995,0002,281,472
15Oct 6, 2023 09:1420,36343,252,66315,928,0001,991,0002,514,944
16Oct 6, 2023 09:1420,36346,925,93916,865,0001,054,0002,281,472
17Oct 6, 2023 09:1420,36738,629,15615,932,0001,991,0002,416,640
18Oct 6, 2023 09:1420,36939,200,15816,930,000995,0002,281,472
19Oct 6, 2023 09:1420,38142,293,96715,943,0001,992,0002,412,544
20Oct 6, 2023 09:1420,42243,769,99715,975,0001,996,0002,281,472
21Oct 6, 2023 09:1420,43142,112,55715,982,0001,997,0002,281,472
22Oct 6, 2023 09:1420,43939,546,07015,988,0001,998,0002,412,544
23Oct 6, 2023 09:1420,44739,544,50515,994,0001,999,0002,510,848
24Oct 6, 2023 09:1420,50339,912,54416,039,0002,004,0002,416,640