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:23Josu San MartinJosu San MartinScore: 29,400Success
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:2629,20035,293,31325,696,00002,113,536
2May 22, 2026 01:2629,28637,038,47325,772,00002,113,536
3May 22, 2026 01:2629,31836,494,58925,800,00002,113,536
4May 22, 2026 01:2629,35535,510,22825,833,00002,113,536
5May 22, 2026 01:2629,40035,825,86825,872,00002,113,536
6May 22, 2026 01:2629,40435,429,38325,876,00002,113,536
7May 22, 2026 01:2629,43834,995,22125,906,00002,113,536
8May 22, 2026 01:2629,45436,324,93425,920,00002,113,536
9May 22, 2026 01:2629,47336,666,28925,937,00002,113,536