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:33Victor MerckléVictor MerckléScore: 8,950Success
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:358,85215,226,5647,790,00002,113,536
2Jun 6, 2026 07:358,86715,266,7387,803,00002,113,536
3Jun 6, 2026 07:358,90715,367,0907,839,00002,113,536
4Jun 6, 2026 07:358,93015,302,0477,859,00002,113,536
5Jun 6, 2026 07:358,95015,235,6977,876,00002,113,536
6Jun 6, 2026 07:358,96715,310,6787,891,00002,113,536
7Jun 6, 2026 07:358,98015,330,0127,903,00002,113,536
8Jun 6, 2026 07:358,98915,272,8627,911,00002,113,536
9Jun 6, 2026 07:359,00015,216,8827,920,00002,113,536