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 20, 2024 21:34Ivan BessonovIvan BessonovScore: 15,454Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 21:3415,19331,004,94411,313,0002,057,0002,289,664
2May 20, 2024 21:3415,23031,078,21913,402,00002,289,664
3May 20, 2024 21:3415,26028,920,45812,396,0001,033,0002,342,912
4May 20, 2024 21:3415,28525,513,59412,417,0001,034,0002,449,408
5May 20, 2024 21:3415,29130,585,79013,456,00002,289,664
6May 20, 2024 21:3415,34335,308,24712,464,0001,038,0002,289,664
7May 20, 2024 21:3415,45459,887,88913,599,46702,203,648
8May 20, 2024 21:3415,55999,199,93713,692,08702,183,168
9May 20, 2024 21:3415,92632,473,46712,013,0002,002,0002,289,664
10May 20, 2024 21:3415,99029,388,04512,061,0002,010,0002,289,664
11May 20, 2024 21:3416,00731,524,68712,074,0002,012,0002,342,912
12May 20, 2024 21:3416,03894,901,09014,113,25202,191,360