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 16, 2026 22:06M-RochatM-RochatScore: 30,994Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2026 22:1630,85336,260,08026,030,0001,121,0002,113,536
2May 16, 2026 22:1630,93136,596,68926,068,0001,152,0002,113,536
3May 16, 2026 22:1630,94536,126,52426,201,0001,031,0002,113,536
4May 16, 2026 22:1630,98235,872,68126,146,0001,119,0002,113,536
5May 16, 2026 22:1630,99435,868,16126,247,0001,028,0002,113,536
6May 16, 2026 22:1630,99435,939,56426,247,0001,028,0002,113,536
7May 16, 2026 22:1631,00237,492,31226,255,0001,027,0002,113,536
8May 16, 2026 22:1631,00736,620,37226,257,0001,030,0002,113,536
9May 16, 2026 22:1631,08036,046,16426,199,0001,152,0002,113,536