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 14, 2024 11:15Ivan BessonovIvan BessonovScore: 36,074Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2024 11:1232,05988,657,76028,211,63602,256,896
2May 14, 2024 11:1532,090103,345,71128,239,00202,265,088
3May 14, 2024 11:1232,13892,997,46828,281,15102,256,896
4May 14, 2024 11:1532,162102,983,53728,302,60302,256,896
5May 14, 2024 11:1232,22993,184,39428,361,33202,265,088
6May 14, 2024 11:1532,23194,892,24428,363,16202,252,800
7May 14, 2024 11:1236,00861,338,11030,665,0001,022,0002,289,664
8May 14, 2024 11:1236,04158,639,41731,716,00002,277,376
9May 14, 2024 11:1536,05755,836,03630,707,0001,023,0002,289,664
10May 14, 2024 11:1236,05755,102,75930,707,0001,023,0002,289,664
11May 14, 2024 11:1536,06658,814,11230,715,0001,023,0002,289,664
12May 14, 2024 11:1536,07258,033,54531,743,00002,289,664
13May 14, 2024 11:1236,07460,760,64630,721,0001,024,0002,289,664
14May 14, 2024 11:1536,08158,823,76231,751,00002,273,280
15May 14, 2024 11:1236,08958,106,41330,734,0001,024,0002,289,664
16May 14, 2024 11:1236,23160,235,10829,891,0001,992,0002,289,664
17May 14, 2024 11:1236,23859,577,43630,893,000996,0002,289,664
18May 14, 2024 11:1536,23860,161,97129,896,0001,993,0002,289,664
19May 14, 2024 11:1536,24265,696,28530,897,000996,0002,289,664
20May 14, 2024 11:1236,24357,969,42629,901,0001,993,0002,289,664
21May 14, 2024 11:1236,24456,307,09530,899,000996,0002,289,664
22May 14, 2024 11:1536,25257,688,96930,906,000996,0002,289,664
23May 14, 2024 11:1536,28057,982,37329,931,0001,995,0002,289,664
24May 14, 2024 11:1536,31354,485,74129,958,0001,997,0002,289,664