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 18:35Ivan BessonovIvan BessonovScore: 17,202Success
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 18:3517,07340,448,48013,021,0002,003,0002,289,664
2May 18, 2024 18:4817,08438,635,76513,030,0002,004,0002,297,856
3May 18, 2024 18:5017,10140,218,07413,043,0002,006,0002,289,664
4May 18, 2024 18:5017,10231,991,05313,044,0002,006,0002,301,952
5May 18, 2024 18:4917,11144,538,05413,051,0002,007,0002,310,144
6May 18, 2024 18:4917,12335,983,93313,059,0002,009,0002,289,664
7May 18, 2024 18:4817,12533,552,49913,061,0002,009,0002,297,856
8May 18, 2024 18:4917,12650,318,28413,062,0002,009,0002,289,664
9May 18, 2024 18:5017,12738,855,72413,063,0002,009,0002,293,760
10May 18, 2024 18:3517,12837,629,76513,064,0002,009,0002,289,664
11May 18, 2024 18:5017,14034,361,59313,072,0002,011,0002,306,048
12May 18, 2024 18:5017,14237,582,42914,080,0001,005,0002,297,856
13May 18, 2024 18:4817,14237,287,23314,080,0001,005,0002,301,952
14May 18, 2024 18:4817,14437,798,98813,076,0002,011,0002,285,568
15May 18, 2024 18:3517,14530,436,07914,083,0001,005,0002,306,048
16May 18, 2024 18:4917,14937,583,46214,085,0001,006,0002,289,664
17May 18, 2024 18:3517,15836,461,64513,086,0002,013,0002,289,664
18May 18, 2024 18:4917,16130,482,32113,089,0002,013,0002,297,856
19May 18, 2024 18:4817,17031,754,88814,103,0001,007,0002,289,664
20May 18, 2024 18:4917,17538,576,80013,099,0002,015,0002,289,664
21May 18, 2024 18:4917,19335,664,56413,113,0002,017,0002,301,952
22May 18, 2024 18:4817,19536,534,71813,115,0002,017,0002,400,256
23May 18, 2024 18:5017,20233,154,44013,120,0002,018,0002,289,664
24May 18, 2024 18:5017,20243,849,17013,120,0002,018,0002,289,664
25May 18, 2024 18:5017,20233,838,26113,120,0002,018,0002,310,144
26May 18, 2024 18:3517,20339,455,10913,121,0002,018,0002,289,664
27May 18, 2024 18:3517,20833,988,64113,124,0002,019,0002,301,952
28May 18, 2024 18:4917,21331,900,65713,128,0002,019,0002,396,160
29May 18, 2024 18:3517,24830,704,51113,155,0002,023,0002,289,664
30May 18, 2024 18:4917,29697,724,85915,220,71502,289,664
31May 18, 2024 18:3517,37676,548,39815,291,31902,289,664
32May 18, 2024 18:3517,37762,265,60715,292,02402,289,664
33May 18, 2024 18:4817,38588,017,17615,299,14702,289,664
34May 18, 2024 18:3517,88435,018,70714,689,0001,049,0002,289,664
35May 18, 2024 18:5017,91783,909,64015,767,11802,293,760
36May 18, 2024 18:5017,92743,071,34315,776,00002,379,776
37May 18, 2024 18:4918,02862,799,95415,864,87902,285,568
38May 18, 2024 18:4818,07340,646,39213,916,0001,988,0002,289,664
39May 18, 2024 18:4918,13837,164,84513,966,0001,995,0002,306,048
40May 18, 2024 18:4818,14238,953,64814,968,000997,0002,289,664
41May 18, 2024 18:4818,14341,026,17614,969,000997,0002,383,872
42May 18, 2024 18:3518,14736,199,19614,971,000998,0002,301,952
43May 18, 2024 18:4918,16582,571,85615,985,51302,281,472
44May 18, 2024 18:5018,24172,934,13316,052,33802,281,472
45May 18, 2024 18:5018,25385,949,52516,062,68602,297,856
46May 18, 2024 18:4818,26955,884,30716,076,76002,293,760
47May 18, 2024 18:3518,34576,149,29616,143,16102,289,664
48May 18, 2024 18:4818,39958,387,32716,191,38702,289,664