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 22, 2024 06:46Ivan BessonovIvan BessonovScore: 15,632Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2024 06:4714,94330,408,15711,127,0002,023,0002,289,664
2May 22, 2024 06:4715,00734,897,26311,175,0002,031,0002,355,200
3May 22, 2024 06:4715,02233,226,57112,203,0001,016,0002,289,664
4May 22, 2024 06:4715,03428,425,94111,195,0002,035,0002,289,664
5May 22, 2024 06:4615,04828,001,64411,205,0002,037,0002,347,008
6May 22, 2024 06:4715,05630,538,32611,211,0002,038,0002,289,664
7May 22, 2024 06:4615,06534,021,32811,218,0002,039,0002,289,664
8May 22, 2024 06:4715,08531,481,71711,233,0002,042,0002,289,664
9May 22, 2024 06:4615,10332,037,98212,269,0001,022,0002,289,664
10May 22, 2024 06:4715,13339,278,97011,269,0002,048,0002,289,664
11May 22, 2024 06:4615,14830,365,19811,280,0002,050,0002,347,008
12May 22, 2024 06:4715,17728,874,65712,329,0001,027,0002,347,008
13May 22, 2024 06:4715,18435,722,52411,307,0002,055,0002,289,664
14May 22, 2024 06:4715,23930,392,62512,379,0001,031,0002,347,008
15May 22, 2024 06:4715,50828,966,95913,647,00002,289,664
16May 22, 2024 06:4715,51755,309,19713,655,12202,211,840
17May 22, 2024 06:4715,55961,882,82513,692,17002,211,840
18May 22, 2024 06:4715,63229,992,75112,698,0001,058,0002,289,664
19May 22, 2024 06:4615,63281,057,06013,756,24402,211,840
20May 22, 2024 06:4715,64242,069,75612,707,0001,058,0002,289,664
21May 22, 2024 06:4715,68132,663,96412,738,0001,061,0002,289,664
22May 22, 2024 06:4715,68931,949,55512,744,0001,062,0002,285,568
23May 22, 2024 06:4615,77332,284,01612,889,000991,0002,351,104
24May 22, 2024 06:4715,77538,847,15812,891,000991,0002,289,664
25May 22, 2024 06:4615,77731,203,70212,893,000991,0002,289,664
26May 22, 2024 06:4615,78234,668,98511,904,0001,984,0002,289,664
27May 22, 2024 06:4715,79331,942,99911,913,0001,985,0002,351,104
28May 22, 2024 06:4615,79534,876,68512,908,000992,0002,351,104
29May 22, 2024 06:4615,80234,058,21312,913,000993,0002,355,200
30May 22, 2024 06:4715,80236,147,04711,920,0001,986,0002,289,664
31May 22, 2024 06:4715,98175,244,26814,063,71302,211,840
32May 22, 2024 06:4716,00979,500,84414,088,27702,203,648
33May 22, 2024 06:4716,06881,973,99814,139,64602,203,648
34May 22, 2024 06:4616,11065,286,65814,176,73802,215,936
35May 22, 2024 06:4616,13975,812,43014,202,56802,195,456
36May 22, 2024 06:4716,26356,414,51014,311,86202,338,816