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 19, 2026 19:56Victor MerckléVictor MerckléScore: 7,032Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 19, 2026 19:596,93413,369,6986,102,00002,113,536
2Jun 19, 2026 19:596,96313,594,3956,128,00002,113,536
3Jun 19, 2026 19:596,99313,605,6416,154,00002,113,536
4Jun 19, 2026 19:596,99813,645,6776,159,00002,113,536
5Jun 19, 2026 19:597,03213,742,1506,189,00002,113,536
6Jun 19, 2026 19:597,03413,634,1226,190,00002,113,536
7Jun 19, 2026 19:597,14313,762,8876,286,00002,113,536
8Jun 19, 2026 19:597,29213,832,0776,417,00002,113,536
9Jun 19, 2026 19:597,36313,896,5596,480,00002,113,536