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 listJul 2, 2021 20:10alex3dalex3dScore: 41,924Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2021 20:1037,242106,363,63132,772,82802,252,800
2Jul 2, 2021 20:1137,283108,772,91132,809,34702,244,608
3Jul 2, 2021 20:1137,33491,309,89532,853,65602,252,800
4Jul 2, 2021 20:1037,379104,169,60432,893,47002,252,800
5Jul 2, 2021 20:1137,43597,701,32132,942,57702,252,800
6Jul 2, 2021 20:1037,49697,963,87532,996,72102,256,896
7Jul 2, 2021 20:1041,73172,076,45735,703,0001,020,0002,289,664
8Jul 2, 2021 20:1141,78465,426,87935,749,0001,021,0002,289,664
9Jul 2, 2021 20:1141,88162,512,86434,863,0001,992,0002,289,664
10Jul 2, 2021 20:1141,91769,024,23935,891,000996,0002,523,136
11Jul 2, 2021 20:1141,92061,690,53634,896,0001,994,0002,289,664
12Jul 2, 2021 20:1141,92367,050,09236,892,00002,289,664
13Jul 2, 2021 20:1041,92465,865,53334,899,0001,994,0002,289,664
14Jul 2, 2021 20:1141,93168,647,02034,905,0001,994,0002,265,088
15Jul 2, 2021 20:1041,93363,158,11434,907,0001,994,0002,265,088
16Jul 2, 2021 20:1141,93468,279,52134,908,0001,994,0002,273,280
17Jul 2, 2021 20:1041,93561,872,03335,906,000997,0002,281,472
18Jul 2, 2021 20:1041,96559,645,80535,931,000998,0002,269,184
19Jul 2, 2021 20:1041,97058,586,38234,938,0001,996,0002,289,664
20Jul 2, 2021 20:1041,97564,245,73934,942,0001,996,0002,289,664
21Jul 2, 2021 20:1141,98068,137,47134,946,0001,996,0002,289,664
22Jul 2, 2021 20:1141,98667,051,50734,951,0001,997,0002,289,664
23Jul 2, 2021 20:1042,04761,302,49735,001,0002,000,0002,289,664
24Jul 2, 2021 20:1042,11959,408,51936,064,0001,001,0002,265,088