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 9, 2026 20:01Victor MerckléVictor MerckléScore: 7,492Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 9, 2026 20:047,38013,732,2386,495,00002,113,536
2Jun 9, 2026 20:047,47613,710,5436,579,00002,113,536
3Jun 9, 2026 20:047,48914,038,9126,591,00002,113,536
4Jun 9, 2026 20:047,49013,714,0036,592,00002,113,536
5Jun 9, 2026 20:047,49214,007,5936,593,00002,113,536
6Jun 9, 2026 20:047,52514,093,1786,622,00002,113,536
7Jun 9, 2026 20:047,54514,076,5846,640,00002,113,536
8Jun 9, 2026 20:047,67814,041,1006,757,00002,113,536
9Jun 9, 2026 20:047,78414,322,3016,850,00002,113,536