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 listJun 21, 2026 22:11Josu San MartinJosu San MartinScore: 59,963Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 22:1559,74861,644,86950,528,0002,051,0002,113,536
2Jun 21, 2026 22:1559,88461,717,75850,614,0002,084,0002,113,536
3Jun 21, 2026 22:1559,91861,680,99250,659,0002,069,0002,113,536
4Jun 21, 2026 22:1559,95161,728,74550,664,0002,093,0002,113,536
5Jun 21, 2026 22:1559,96361,645,26050,684,0002,084,0002,113,536
6Jun 21, 2026 22:1559,98565,435,75250,713,0002,074,0002,113,536
7Jun 21, 2026 22:1560,06063,058,56850,755,0002,098,0002,113,536
8Jun 21, 2026 22:1560,14861,910,72450,844,0002,087,0002,113,536
9Jun 21, 2026 22:1560,19861,957,25150,867,0002,108,0002,113,536