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:21Ivan BessonovIvan BessonovScore: 17,195Success
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:2716,99837,496,33112,964,0001,994,0002,301,952
2May 18, 2024 19:2117,02529,920,66612,985,0001,997,0002,297,856
3May 18, 2024 19:2717,03336,757,27912,991,0001,998,0002,297,856
4May 18, 2024 19:2217,03932,497,17312,995,0001,999,0002,289,664
5May 18, 2024 19:2717,03936,513,61712,995,0001,999,0002,293,760
6May 18, 2024 19:2517,04931,717,43013,003,0002,000,0002,289,664
7May 18, 2024 19:2517,06330,931,26913,013,0002,002,0002,285,568
8May 18, 2024 19:2217,06535,822,82013,015,0002,002,0002,289,664
9May 18, 2024 19:2217,06835,386,12413,018,0002,002,0002,289,664
10May 18, 2024 19:2517,07332,721,68113,021,0002,003,0002,289,664
11May 18, 2024 19:2117,08130,375,78213,027,0002,004,0002,289,664
12May 18, 2024 19:2117,08237,176,59313,028,0002,004,0002,301,952
13May 18, 2024 19:2517,09245,562,40813,036,0002,005,0002,289,664
14May 18, 2024 19:2717,09230,759,51813,036,0002,005,0002,289,664
15May 18, 2024 19:2117,09837,013,54713,040,0002,006,0002,289,664
16May 18, 2024 19:2217,10833,377,23813,048,0002,007,0002,289,664
17May 18, 2024 19:2217,11132,930,83813,051,0002,007,0002,289,664
18May 18, 2024 19:2717,12036,099,88313,058,0002,008,0002,289,664
19May 18, 2024 19:2717,12536,623,59313,061,0002,009,0002,289,664
20May 18, 2024 19:2517,13337,660,71414,072,0001,005,0002,289,664
21May 18, 2024 19:2517,13341,133,80813,067,0002,010,0002,289,664
22May 18, 2024 19:2217,13637,884,42914,075,0001,005,0002,301,952
23May 18, 2024 19:2217,16729,671,37313,093,0002,014,0002,301,952
24May 18, 2024 19:2717,17334,770,08113,097,0002,015,0002,289,664
25May 18, 2024 19:2117,19540,369,11914,124,0001,008,0002,297,856
26May 18, 2024 19:2517,26886,457,19315,195,99002,281,472
27May 18, 2024 19:2517,32486,717,03415,245,49802,285,568
28May 18, 2024 19:2117,69541,657,62614,534,0001,038,0002,301,952
29May 18, 2024 19:2117,70472,542,76315,579,73002,289,664
30May 18, 2024 19:2117,80236,877,37614,622,0001,044,0002,289,664
31May 18, 2024 19:2117,83641,851,52514,650,0001,046,0002,297,856
32May 18, 2024 19:2117,90039,402,99014,702,0001,050,0002,297,856
33May 18, 2024 19:2117,93881,124,01315,785,14302,285,568
34May 18, 2024 19:2518,06934,943,11213,914,0001,987,0002,293,760
35May 18, 2024 19:2718,07335,979,97714,910,000994,0002,289,664
36May 18, 2024 19:2218,07342,181,35513,916,0001,988,0002,306,048
37May 18, 2024 19:2218,07444,129,19414,911,000994,0002,293,760
38May 18, 2024 19:2518,09845,638,91613,936,0001,990,0002,289,664
39May 18, 2024 19:2718,11037,549,32013,945,0001,992,0002,306,048
40May 18, 2024 19:2218,11582,521,20015,941,15802,281,472
41May 18, 2024 19:2518,12231,625,18814,951,000996,0002,281,472
42May 18, 2024 19:2518,17260,492,69115,991,78802,293,760
43May 18, 2024 19:2118,20986,394,76716,023,75002,289,664
44May 18, 2024 19:2218,21482,337,55516,028,00602,285,568
45May 18, 2024 19:2218,27870,690,15216,084,36602,297,856
46May 18, 2024 19:2718,28585,449,55616,090,90902,297,856
47May 18, 2024 19:2718,31381,492,26916,115,06002,281,472
48May 18, 2024 19:2718,32356,565,31116,124,01002,408,448