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 6, 2026 07:28Victor MerckléVictor MerckléScore: 8,861Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 6, 2026 07:308,82815,219,1367,769,00002,113,536
2Jun 6, 2026 07:308,83415,203,5667,774,00002,113,536
3Jun 6, 2026 07:308,84015,198,6637,780,00002,113,536
4Jun 6, 2026 07:308,85615,249,0017,794,00002,113,536
5Jun 6, 2026 07:308,86115,223,3547,798,00002,113,536
6Jun 6, 2026 07:308,89015,186,7407,824,00002,113,536
7Jun 6, 2026 07:308,95115,293,1517,877,00002,113,536
8Jun 6, 2026 07:309,03115,368,9637,948,00002,113,536
9Jun 6, 2026 07:309,15415,476,1178,056,00002,113,536