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 19, 2024 09:15Ivan BessonovIvan BessonovScore: 17,245Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2024 09:1516,66934,952,71214,669,00002,289,664
2May 19, 2024 09:1516,74736,113,96913,685,0001,052,0002,289,664
3May 19, 2024 09:1316,75931,703,93613,695,0001,053,0002,334,720
4May 19, 2024 09:1316,77234,950,15913,705,0001,054,0002,289,664
5May 19, 2024 09:1516,77336,440,83313,706,0001,054,0002,289,664
6May 19, 2024 09:1316,77831,985,89713,711,0001,054,0002,338,816
7May 19, 2024 09:1316,79331,495,27713,723,0001,055,0002,338,816
8May 19, 2024 09:1516,81639,500,74513,741,0001,057,0002,338,816
9May 19, 2024 09:1317,08938,360,59614,036,0001,002,0002,330,624
10May 19, 2024 09:1517,18933,446,55714,118,0001,008,0002,334,720
11May 19, 2024 09:1317,22639,661,54213,138,0002,021,0002,330,624
12May 19, 2024 09:1517,23330,726,62113,143,0002,022,0002,334,720
13May 19, 2024 09:1317,24538,907,04413,153,0002,023,0002,289,664
14May 19, 2024 09:1517,25232,530,85413,158,0002,024,0002,338,816
15May 19, 2024 09:1517,25630,721,70013,161,0002,024,0002,289,664
16May 19, 2024 09:1317,30736,991,75213,200,0002,030,0002,289,664
17May 19, 2024 09:1317,42434,983,66214,311,0001,022,0002,289,664
18May 19, 2024 09:1517,43536,245,52413,298,0002,045,0002,424,832
19May 19, 2024 09:1517,59779,941,15315,485,20202,183,168
20May 19, 2024 09:1317,74482,788,37015,614,50502,195,456
21May 19, 2024 09:1317,749101,485,04315,619,24602,187,264
22May 19, 2024 09:1517,82162,512,62415,682,09702,187,264
23May 19, 2024 09:1517,82281,166,09115,683,09202,195,456
24May 19, 2024 09:1317,87193,538,84915,726,29202,191,360