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 20:08Victor MerckléVictor MerckléScore: 5,859Success
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 20:115,75012,583,4105,060,00002,117,632stderr
2Jun 23, 2026 20:115,84313,349,2965,142,00002,117,632stderr
3Jun 23, 2026 20:115,85212,992,6035,150,00002,117,632stderr
4Jun 23, 2026 20:115,85512,627,6135,153,00002,117,632stderr
5Jun 23, 2026 20:115,85912,637,0475,156,00002,117,632stderr
6Jun 23, 2026 20:115,86412,648,4525,161,00002,117,632stderr
7Jun 23, 2026 20:115,88112,948,6245,176,00002,117,632stderr
8Jun 23, 2026 20:115,90712,980,1725,199,00002,117,632stderr
9Jun 23, 2026 20:115,92012,696,0695,210,00002,117,632stderr