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 06:36Victor MerckléVictor MerckléScore: 9,372Success
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 06:399,31415,647,7598,197,00002,113,536
2Jun 6, 2026 06:399,32315,721,3748,205,00002,113,536
3Jun 6, 2026 06:399,36015,670,4948,237,00002,113,536
4Jun 6, 2026 06:399,36315,735,5028,240,00002,113,536
5Jun 6, 2026 06:399,37215,665,9708,248,00002,113,536
6Jun 6, 2026 06:399,39015,655,1278,264,00002,113,536
7Jun 6, 2026 06:399,42215,665,3798,292,00002,113,536
8Jun 6, 2026 06:399,45416,095,0188,320,00002,113,536
9Jun 6, 2026 06:399,52616,014,5998,383,00002,113,536