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 20:33Victor MerckléVictor MerckléScore: 5,136Success
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 20:365,04511,986,2564,440,00002,113,536
2Jun 26, 2026 20:365,06412,082,1284,457,00002,113,536
3Jun 26, 2026 20:365,12711,952,9544,512,00002,113,536
4Jun 26, 2026 20:365,12712,032,9694,512,00002,113,536
5Jun 26, 2026 20:365,13612,043,9694,520,00002,113,536
6Jun 26, 2026 20:365,15012,416,3854,532,00002,113,536
7Jun 26, 2026 20:365,16312,418,7654,544,00002,113,536
8Jun 26, 2026 20:365,16712,080,5754,547,00002,113,536
9Jun 26, 2026 20:365,50412,703,3424,844,00002,113,536