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 listMay 18, 2024 19:11Ivan BessonovIvan BessonovScore: 17,088Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 19:1116,94344,224,88512,922,0001,988,0002,301,952
2May 18, 2024 19:1116,95241,617,10313,924,000994,0002,297,856
3May 18, 2024 19:1116,95842,331,85712,934,0001,989,0002,293,760
4May 18, 2024 19:1116,98133,836,11112,951,0001,992,0002,306,048
5May 18, 2024 19:1116,98334,373,11812,953,0001,992,0002,289,664
6May 18, 2024 19:1117,00334,257,06113,966,000997,0002,310,144
7May 18, 2024 19:1117,00530,829,18912,969,0001,995,0002,289,664
8May 18, 2024 19:1117,02837,493,09512,987,0001,998,0002,301,952
9May 18, 2024 19:1117,05038,367,79113,004,0002,000,0002,289,664
10May 18, 2024 19:1117,05037,554,17913,004,0002,000,0002,289,664
11May 18, 2024 19:1117,05631,636,80414,009,0001,000,0002,289,664
12May 18, 2024 19:1117,08637,327,75113,032,0002,004,0002,408,448
13May 18, 2024 19:1117,08833,838,48313,032,0002,005,0002,297,856
14May 18, 2024 19:1117,10032,461,45513,042,0002,006,0002,400,256
15May 18, 2024 19:1117,58267,417,22915,471,99302,289,664
16May 18, 2024 19:1117,65154,524,77715,533,11702,281,472
17May 18, 2024 19:1117,65793,641,91815,538,23702,285,568
18May 18, 2024 19:1117,71840,156,22314,553,0001,039,0002,289,664
19May 18, 2024 19:1117,80632,305,50615,669,00002,301,952
20May 18, 2024 19:1118,05735,081,73314,897,000993,0002,289,664
21May 18, 2024 19:1118,06738,896,81113,912,0001,987,0002,289,664
22May 18, 2024 19:1118,46693,164,57916,250,21702,289,664
23May 18, 2024 19:1118,59868,692,30016,366,63502,289,664
24May 18, 2024 19:1118,63185,486,46116,395,57502,285,568