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 16, 2024 19:01Ivan BessonovIvan BessonovScore: 31,353Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 19:0128,06687,794,83524,697,84802,256,896
2May 16, 2024 19:0128,23991,638,98124,850,21302,256,896
3May 16, 2024 19:0128,32094,801,42124,921,93602,252,800
4May 16, 2024 19:0131,27549,912,06926,503,0001,019,0002,289,664
5May 16, 2024 19:0131,30653,723,36326,529,0001,020,0002,289,664
6May 16, 2024 19:0131,33548,474,88327,575,00002,269,184
7May 16, 2024 19:0131,35349,975,77126,570,0001,021,0002,289,664
8May 16, 2024 19:0131,41751,172,42227,647,00002,277,376
9May 16, 2024 19:0131,42553,380,28827,654,00002,273,280
10May 16, 2024 19:0131,48258,420,91027,704,00002,289,664
11May 16, 2024 19:0131,49853,904,41226,692,0001,026,0002,273,280
12May 16, 2024 19:0131,74951,405,50125,944,0001,995,0002,281,472