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 listJul 2, 2026 21:15A_ShamanA_ShamanScore: 143,992Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 21:17143,689136,256,985124,142,0002,305,0002,113,536
2Jul 2, 2026 21:17143,779136,010,131124,265,0002,261,0002,113,536
3Jul 2, 2026 21:17143,814136,413,986124,232,0002,325,0002,113,536
4Jul 2, 2026 21:17143,845136,411,896124,276,0002,308,0002,113,536
5Jul 2, 2026 21:17143,992136,496,955124,420,0002,293,0002,113,536
6Jul 2, 2026 21:17144,102136,336,165124,538,0002,272,0002,113,536
7Jul 2, 2026 21:17144,270136,664,432124,643,0002,315,0002,113,536
8Jul 2, 2026 21:17144,386138,190,059124,724,0002,336,0002,113,536
9Jul 2, 2026 21:17144,664137,231,332124,935,0002,370,0002,113,536