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 listDec 14, 2024 23:28Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 14, 2024 23:5000000Error: expected "51790871682937 ", got "51790871682870 "stderr
2Dec 14, 2024 23:2826,74245,312,28922,510,0001,023,0002,383,872
3Dec 14, 2024 23:5026,76648,011,70723,554,00002,523,136
4Dec 14, 2024 23:2826,80847,141,90122,566,0001,025,0002,379,776
5Dec 14, 2024 23:5026,80949,978,76622,567,0001,025,0002,523,136
6Dec 14, 2024 23:5026,84450,182,93522,596,0001,027,0002,260,992
7Dec 14, 2024 23:2826,86649,648,96822,615,0001,027,0002,392,064
8Dec 14, 2024 23:5026,86843,207,81123,644,00002,523,136
9Dec 14, 2024 23:2826,88448,715,03523,658,00002,510,848
10Dec 14, 2024 23:5026,88649,569,81722,632,0001,028,0002,379,776
11Dec 14, 2024 23:5026,90147,584,28922,644,0001,029,0002,510,848
12Dec 14, 2024 23:2826,93252,051,79922,670,0001,030,0002,523,136
13Dec 14, 2024 23:5026,96649,681,94523,730,00002,523,136
14Dec 14, 2024 23:5027,03947,880,63022,760,0001,034,0002,260,992
15Dec 14, 2024 23:5027,07248,510,09622,788,0001,035,0002,396,160
16Dec 14, 2024 23:2827,15951,209,35321,909,0001,991,0002,396,160
17Dec 14, 2024 23:2827,16153,993,28421,911,0001,991,0002,523,136
18Dec 14, 2024 23:2827,17550,457,16021,922,0001,992,0002,523,136
19Dec 14, 2024 23:2827,18950,504,72423,926,00002,523,136