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 14:17Ivan BessonovIvan BessonovScore: 19,811Success
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 14:1819,63238,931,14116,260,0001,016,0002,301,952
2May 18, 2024 14:1819,63840,253,33415,248,0002,033,0002,289,664
3May 18, 2024 14:1819,70640,876,14616,321,0001,020,0002,289,664
4May 18, 2024 14:1819,71146,488,00515,306,0002,040,0002,297,856
5May 18, 2024 14:1919,71734,516,94015,310,0002,041,0002,289,664
6May 18, 2024 14:1819,73439,839,21316,345,0001,021,0002,301,952
7May 18, 2024 14:1919,73436,252,35015,323,0002,043,0002,293,760
8May 18, 2024 14:1919,73537,580,14315,324,0002,043,0002,301,952
9May 18, 2024 14:1719,74842,961,08015,334,0002,044,0002,301,952
10May 18, 2024 14:1819,75032,861,43116,358,0001,022,0002,289,664
11May 18, 2024 14:1719,77645,305,59616,380,0001,023,0002,289,664
12May 18, 2024 14:1719,77741,459,02516,381,0001,023,0002,289,664
13May 18, 2024 14:1919,78239,381,34016,384,0001,024,0002,396,160
14May 18, 2024 14:1719,78433,393,96017,410,00002,289,664
15May 18, 2024 14:1919,78640,233,29817,412,00002,289,664
16May 18, 2024 14:1719,79141,374,77217,416,00002,289,664
17May 18, 2024 14:1919,79942,800,39816,399,0001,024,0002,289,664
18May 18, 2024 14:1819,80845,687,10516,406,0001,025,0002,289,664
19May 18, 2024 14:1719,81137,754,97816,409,0001,025,0002,301,952
20May 18, 2024 14:1919,81438,573,81516,411,0001,025,0002,289,664
21May 18, 2024 14:1819,81439,740,99417,436,00002,289,664
22May 18, 2024 14:1819,84034,805,03716,432,0001,027,0002,301,952
23May 18, 2024 14:1720,35941,602,42116,921,000995,0002,392,064
24May 18, 2024 14:1720,36635,262,88815,931,0001,991,0002,289,664
25May 18, 2024 14:1920,44941,485,40316,996,000999,0002,289,664
26May 18, 2024 14:1920,51645,720,48316,048,0002,006,0002,289,664
27May 18, 2024 14:1720,52041,210,09216,052,0002,006,0002,306,048
28May 18, 2024 14:1821,27884,188,16318,724,30602,281,472
29May 18, 2024 14:1721,28272,042,81918,728,03402,285,568
30May 18, 2024 14:1721,302108,754,57818,745,59502,277,376
31May 18, 2024 14:1721,304108,686,74918,747,83602,277,376
32May 18, 2024 14:1821,33478,004,87518,773,93302,285,568
33May 18, 2024 14:1921,85186,060,70519,228,47802,293,760
34May 18, 2024 14:1922,05995,767,92019,412,08102,281,472
35May 18, 2024 14:1922,063104,439,16819,415,08802,289,664
36May 18, 2024 14:1822,14376,423,39519,485,74402,408,448