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 09:37Victor MerckléVictor MerckléScore: 6,203Success
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 09:406,18212,916,1275,441,00002,117,632stderr
2Jun 23, 2026 09:406,19413,257,7945,451,00002,117,632stderr
3Jun 23, 2026 09:406,19612,894,8245,453,00002,117,632stderr
4Jun 23, 2026 09:406,19712,904,0445,454,00002,117,632stderr
5Jun 23, 2026 09:406,20313,304,6555,459,00002,117,632stderr
6Jun 23, 2026 09:406,23513,303,2085,487,00002,117,632stderr
7Jun 23, 2026 09:406,28513,331,6245,531,00002,117,632stderr
8Jun 23, 2026 09:406,30013,116,3895,544,00002,117,632stderr
9Jun 23, 2026 09:406,52213,557,4125,740,00002,117,632stderr