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 26, 2026 23:34Victor MerckléVictor MerckléScore: 5,498Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2026 23:375,37712,231,2144,732,00002,113,536
2Jun 26, 2026 23:375,41112,259,4984,762,00002,113,536
3Jun 26, 2026 23:375,47812,315,2024,821,00002,113,536
4Jun 26, 2026 23:375,48512,629,0874,827,00002,113,536
5Jun 26, 2026 23:375,49812,610,1534,839,00002,113,536
6Jun 26, 2026 23:375,49813,652,5584,839,00002,113,536
7Jun 26, 2026 23:375,52012,357,8024,858,00002,113,536
8Jun 26, 2026 23:375,52112,364,6164,859,00002,113,536
9Jun 26, 2026 23:375,66312,504,8184,984,00002,113,536