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 27, 2026 19:41Victor MerckléVictor MerckléScore: 5,185Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2026 19:445,05212,182,5524,446,00002,113,536
2Jun 27, 2026 19:445,08712,513,3424,477,00002,113,536
3Jun 27, 2026 19:445,15312,199,3064,535,00002,113,536
4Jun 27, 2026 19:445,16912,449,3204,549,00002,113,536
5Jun 27, 2026 19:445,18512,470,8494,563,00002,113,536
6Jun 27, 2026 19:445,19512,250,6184,572,00002,113,536
7Jun 27, 2026 19:445,19812,478,1454,575,00002,113,536
8Jun 27, 2026 19:445,20012,232,1534,576,00002,113,536
9Jun 27, 2026 19:445,46012,547,5114,805,00002,113,536