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 17, 2024 08:47Ivan BessonovIvan BessonovScore: 23,469Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 08:4723,26441,738,79819,449,0001,023,0002,277,376
2May 17, 2024 08:4723,26544,601,35019,450,0001,023,0002,375,680
3May 17, 2024 08:4723,32744,715,67419,502,0001,026,0002,269,184
4May 17, 2024 08:4723,33940,591,98619,512,0001,026,0002,289,664
5May 17, 2024 08:4723,34142,549,49619,513,0001,027,0002,289,664
6May 17, 2024 08:4723,46147,107,99319,614,0001,032,0002,269,184
7May 17, 2024 08:4723,46948,338,82719,621,0001,032,0002,289,664
8May 17, 2024 08:4723,51547,802,38919,659,0001,034,0002,289,664
9May 17, 2024 08:4723,60754,691,47220,774,00002,289,664
10May 17, 2024 08:4723,79584,560,45420,939,96202,260,992
11May 17, 2024 08:4723,87985,089,31321,013,40402,260,992
12May 17, 2024 08:4723,93796,581,28721,064,52702,265,088