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 08:43Victor MerckléVictor MerckléScore: 7,767Success
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 08:457,72014,193,5156,794,00002,113,536
2Jun 6, 2026 08:457,73914,223,1756,811,00002,113,536
3Jun 6, 2026 08:457,74714,285,3076,818,00002,113,536
4Jun 6, 2026 08:457,76314,230,3866,832,00002,113,536
5Jun 6, 2026 08:457,76714,257,6266,835,00002,113,536
6Jun 6, 2026 08:457,82014,266,8626,882,00002,113,536
7Jun 6, 2026 08:457,82314,256,1526,885,00002,113,536
8Jun 6, 2026 08:457,85914,575,2496,916,00002,113,536
9Jun 6, 2026 08:457,86914,289,0186,925,00002,113,536