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 23, 2026 05:42Victor MerckléVictor MerckléScore: 5,887Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 05:455,77712,611,1615,084,00002,113,536
2Jun 23, 2026 05:455,86412,811,7885,161,00002,113,536
3Jun 23, 2026 05:455,88112,618,0475,176,00002,113,536
4Jun 23, 2026 05:455,88112,627,6185,176,00002,113,536
5Jun 23, 2026 05:455,88713,050,5885,181,00002,113,536
6Jun 23, 2026 05:455,88912,970,8575,183,00002,113,536
7Jun 23, 2026 05:455,89712,685,9735,190,00002,113,536
8Jun 23, 2026 05:455,89812,912,2165,191,00002,113,536
9Jun 23, 2026 05:455,92512,701,8485,214,00002,113,536