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 11, 2026 05:22Victor MerckléVictor MerckléScore: 8,137Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2026 05:258,05914,542,0307,092,00002,113,536
2Jun 11, 2026 05:258,06314,579,9027,096,00002,113,536
3Jun 11, 2026 05:258,08414,615,2777,114,00002,113,536
4Jun 11, 2026 05:258,08514,563,5687,115,00002,113,536
5Jun 11, 2026 05:258,13714,524,4287,161,00002,113,536
6Jun 11, 2026 05:258,15615,904,0207,178,00002,113,536
7Jun 11, 2026 05:258,16014,592,1077,181,00002,113,536
8Jun 11, 2026 05:258,17014,584,5877,190,00002,113,536
9Jun 11, 2026 05:258,23114,894,8877,244,00002,113,536