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 22, 2026 01:27Josu San MartinJosu San MartinScore: 29,288Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2026 01:3029,22637,389,65525,719,00002,113,536
2May 22, 2026 01:3029,23934,859,17125,731,00002,113,536
3May 22, 2026 01:3029,26536,131,21225,754,00002,113,536
4May 22, 2026 01:3029,28637,735,14125,772,00002,113,536
5May 22, 2026 01:3029,28835,958,70625,774,00002,113,536
6May 22, 2026 01:3029,30235,563,98025,786,00002,113,536
7May 22, 2026 01:3029,35036,135,76925,828,00002,113,536
8May 22, 2026 01:3029,35036,930,24525,828,00002,113,536
9May 22, 2026 01:3029,41134,949,04425,882,00002,113,536