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 listApr 20, 2026 21:32Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 21:32045,479,15117,897,0001,988,0002,273,280expected "51499859890277 ", got "51499859890278 "stderr
2Apr 20, 2026 21:3221,87255,563,37518,235,0001,013,0002,375,680stderr
3Apr 20, 2026 21:3222,18438,972,55119,522,00002,371,584stderr