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 15:24Ivan BessonovIvan BessonovScore: 20,031Success
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 15:3219,24137,602,92914,940,0001,992,0002,306,048
2May 18, 2024 15:3219,26935,573,48514,962,0001,995,0002,310,144
3May 18, 2024 15:3319,27353,503,80014,965,0001,995,0002,289,664
4May 18, 2024 15:3219,27437,450,23814,966,0001,995,0002,289,664
5May 18, 2024 15:3319,28242,877,82114,972,0001,996,0002,289,664
6May 18, 2024 15:3219,28343,531,01314,973,0001,996,0002,297,856
7May 18, 2024 15:3319,28539,302,85914,975,0001,996,0002,310,144
8May 18, 2024 15:3319,29744,641,12214,984,0001,997,0002,310,144
9May 18, 2024 15:3319,29943,016,84114,985,0001,998,0002,289,664
10May 18, 2024 15:3219,30139,598,32414,987,0001,998,0002,289,664
11May 18, 2024 15:2419,30140,951,70614,987,0001,998,0002,310,144
12May 18, 2024 15:3319,30941,948,31015,993,000999,0002,306,048
13May 18, 2024 15:3219,31038,127,95114,994,0001,999,0002,310,144
14May 18, 2024 15:3219,31342,668,63214,996,0001,999,0002,301,952
15May 18, 2024 15:3219,31436,672,37214,997,0001,999,0002,289,664
16May 18, 2024 15:3319,31543,583,69214,998,0001,999,0002,301,952
17May 18, 2024 15:3219,31839,645,12515,000,0002,000,0002,289,664
18May 18, 2024 15:3219,35039,143,70515,025,0002,003,0002,289,664
19May 18, 2024 15:3319,37242,782,04315,982,0001,065,0002,404,352
20May 18, 2024 15:3319,40941,797,45116,013,0001,067,0002,523,136
21May 18, 2024 15:3219,87539,524,34117,490,00002,297,856
22May 18, 2024 15:3219,97540,192,11116,544,0001,034,0002,289,664
23May 18, 2024 15:3219,99544,492,37816,561,0001,035,0002,289,664
24May 18, 2024 15:2420,02834,668,28816,589,0001,036,0002,289,664
25May 18, 2024 15:3220,03144,481,14917,627,00002,289,664
26May 18, 2024 15:2420,03332,912,34216,592,0001,037,0002,289,664
27May 18, 2024 15:3220,03932,492,90516,597,0001,037,0002,297,856
28May 18, 2024 15:2420,06838,829,29916,622,0001,038,0002,289,664
29May 18, 2024 15:2420,07234,546,35717,663,00002,301,952
30May 18, 2024 15:3220,08539,318,47416,636,0001,039,0002,289,664
31May 18, 2024 15:3220,08843,920,09816,638,0001,039,0002,306,048
32May 18, 2024 15:2420,11148,404,09916,657,0001,041,0002,301,952
33May 18, 2024 15:2420,12748,954,07816,671,0001,041,0002,289,664
34May 18, 2024 15:2420,13643,201,54916,678,0001,042,0002,404,352
35May 18, 2024 15:2420,14341,695,99216,684,0001,042,0002,289,664
36May 18, 2024 15:3220,15145,331,23316,690,0001,043,0002,289,664
37May 18, 2024 15:3220,27280,678,17517,839,07402,285,568
38May 18, 2024 15:2420,27887,871,38917,844,75202,252,800
39May 18, 2024 15:2420,28989,181,56217,853,97402,289,664
40May 18, 2024 15:2420,31694,544,66617,878,35102,285,568
41May 18, 2024 15:3220,32079,888,39117,881,45202,285,568
42May 18, 2024 15:3320,35085,087,89917,907,65702,289,664
43May 18, 2024 15:3220,36085,895,91917,916,96902,289,664
44May 18, 2024 15:3220,69378,221,42018,209,45102,297,856
45May 18, 2024 15:3220,77481,339,12818,280,92102,289,664
46May 18, 2024 15:3320,89566,150,53118,387,96602,285,568
47May 18, 2024 15:3220,93586,385,30218,422,53202,277,376
48May 18, 2024 15:3320,95781,304,19518,441,78002,281,472