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 23, 2026 11:06Victor MerckléVictor MerckléScore: 5,514Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 11:085,37012,294,2424,726,00002,113,536
2Jun 23, 2026 11:085,46412,275,5214,809,00002,113,536
3Jun 23, 2026 11:085,47112,280,5734,815,00002,113,536
4Jun 23, 2026 11:085,50012,654,5154,840,00002,113,536
5Jun 23, 2026 11:085,51412,700,5384,853,00002,113,536
6Jun 23, 2026 11:085,56012,767,3334,893,00002,113,536
7Jun 23, 2026 11:085,57112,392,6734,903,00002,113,536
8Jun 23, 2026 11:085,64712,873,0814,970,00002,113,536
9Jun 23, 2026 11:085,76312,531,3965,072,00002,113,536