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 29, 2026 13:51Victor MerckléVictor MerckléScore: 5,062Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2026 13:544,96312,085,0834,368,00002,113,536
2Jun 29, 2026 13:544,97312,127,6224,377,00002,113,536
3Jun 29, 2026 13:544,98512,157,5594,387,00002,113,536
4Jun 29, 2026 13:545,04012,146,3814,436,00002,113,536
5Jun 29, 2026 13:545,06212,118,3464,455,00002,113,536
6Jun 29, 2026 13:545,07512,159,9504,466,00002,113,536
7Jun 29, 2026 13:545,08412,154,9134,474,00002,113,536
8Jun 29, 2026 13:545,09313,445,1214,482,00002,113,536
9Jun 29, 2026 13:545,18012,530,1164,559,00002,113,536