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 13, 2024 08:41Ivan BessonovIvan BessonovScore: 35,122Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 13, 2024 08:4132,03690,643,81928,191,93002,265,088
2May 13, 2024 08:4132,09298,866,50128,241,31802,260,992
3May 13, 2024 08:4132,174103,774,61428,312,96802,260,992
4May 13, 2024 08:4135,09862,693,82128,894,0001,992,0002,289,664
5May 13, 2024 08:4135,09956,186,94729,891,000996,0002,273,280
6May 13, 2024 08:4135,10562,815,77928,899,0001,993,0002,289,664
7May 13, 2024 08:4135,12257,350,23629,910,000997,0002,273,280
8May 13, 2024 08:4135,16452,587,97628,948,0001,996,0002,289,664
9May 13, 2024 08:4135,23355,057,22630,005,0001,000,0002,289,664
10May 13, 2024 08:4135,26556,627,95629,031,0002,002,0002,289,664
11May 13, 2024 08:4135,28954,060,81329,051,0002,003,0002,289,664
12May 13, 2024 08:4135,36553,010,77229,114,0002,007,0002,289,664