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 18:51Victor MerckléVictor MerckléScore: 6,192Success
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 18:546,08412,865,3115,354,00002,117,632stderr
2Jun 23, 2026 18:546,09412,927,9615,363,00002,117,632stderr
3Jun 23, 2026 18:546,17513,272,7695,434,00002,117,632stderr
4Jun 23, 2026 18:546,18512,874,9245,443,00002,117,632stderr
5Jun 23, 2026 18:546,19213,168,3515,449,00002,117,632stderr
6Jun 23, 2026 18:546,19313,256,9685,450,00002,117,632stderr
7Jun 23, 2026 18:546,19313,255,9935,450,00002,117,632stderr
8Jun 23, 2026 18:546,25712,910,1025,507,00002,117,632stderr
9Jun 23, 2026 18:546,38213,165,9185,617,00002,117,632stderr