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 20, 2024 19:12Ivan BessonovIvan BessonovScore: 16,026Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 19:1215,40632,920,39413,557,00002,351,104
2May 20, 2024 19:1415,41331,777,04712,520,0001,043,0002,351,104
3May 20, 2024 19:1415,41630,149,43312,523,0001,043,0002,437,120
4May 20, 2024 19:1415,41831,953,93712,525,0001,043,0002,338,816
5May 20, 2024 19:1215,43131,408,99512,535,0001,044,0002,289,664
6May 20, 2024 19:1315,44334,055,71812,545,0001,045,0002,289,664
7May 20, 2024 19:1315,44434,467,91512,546,0001,045,0002,285,568
8May 20, 2024 19:1415,44429,395,19912,546,0001,045,0002,342,912
9May 20, 2024 19:1315,45031,080,27212,551,0001,045,0002,347,008
10May 20, 2024 19:1315,45235,273,01812,552,0001,046,0002,342,912
11May 20, 2024 19:1415,45529,205,98012,554,0001,046,0002,289,664
12May 20, 2024 19:1215,46534,345,31513,609,00002,289,664
13May 20, 2024 19:1415,46733,185,66712,564,0001,047,0002,342,912
14May 20, 2024 19:1315,47035,250,85512,567,0001,047,0002,289,664
15May 20, 2024 19:1315,47234,076,80412,568,0001,047,0002,289,664
16May 20, 2024 19:1315,47736,085,29813,620,00002,289,664
17May 20, 2024 19:1315,49337,970,58312,586,0001,048,0002,289,664
18May 20, 2024 19:1415,49730,586,84712,588,0001,049,0002,289,664
19May 20, 2024 19:1315,49833,362,05413,638,00002,289,664
20May 20, 2024 19:1315,50134,604,42212,592,0001,049,0002,289,664
21May 20, 2024 19:1215,51430,631,15712,602,0001,050,0002,342,912
22May 20, 2024 19:1415,92235,782,36512,010,0002,001,0002,289,664
23May 20, 2024 19:1315,99432,604,69112,065,0002,010,0002,285,568
24May 20, 2024 19:1316,02337,034,30112,086,0002,014,0002,289,664
25May 20, 2024 19:1316,02634,657,07612,089,0002,014,0002,285,568
26May 20, 2024 19:1216,03342,648,25412,094,0002,015,0002,289,664
27May 20, 2024 19:1216,03564,332,66514,110,61002,195,456
28May 20, 2024 19:1416,04582,391,28514,119,67102,195,456
29May 20, 2024 19:1316,04930,074,61412,106,0002,017,0002,441,216
30May 20, 2024 19:1416,05055,081,63614,124,43902,199,552
31May 20, 2024 19:1216,05199,468,55114,125,15002,187,264
32May 20, 2024 19:1216,06937,669,86913,131,0001,010,0002,289,664
33May 20, 2024 19:1316,07269,935,84014,143,33002,195,456
34May 20, 2024 19:1216,09230,048,28812,138,0002,023,0002,289,664
35May 20, 2024 19:1216,09331,444,87212,139,0002,023,0002,289,664
36May 20, 2024 19:1316,10629,245,37612,149,0002,024,0002,338,816
37May 20, 2024 19:1316,10680,264,22614,173,57502,252,800
38May 20, 2024 19:1416,11728,953,39212,157,0002,026,0002,285,568
39May 20, 2024 19:1316,12035,273,77213,173,0001,013,0002,342,912
40May 20, 2024 19:1316,12231,951,73812,161,0002,026,0002,289,664
41May 20, 2024 19:1216,12585,917,86614,190,41702,326,528
42May 20, 2024 19:1216,13638,732,84412,172,0002,028,0002,289,664
43May 20, 2024 19:1316,14036,782,87012,174,0002,029,0002,285,568
44May 20, 2024 19:1416,15065,820,47714,211,93202,326,528
45May 20, 2024 19:1316,41081,379,68414,440,51902,195,456
46May 20, 2024 19:1316,66665,639,62814,665,82802,187,264
47May 20, 2024 19:1316,67764,214,56614,675,83902,207,744
48May 20, 2024 19:1316,68279,618,15114,680,40002,199,552