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 22:53Victor 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
1Jun 29, 2026 22:54012,193,6064,204,00002,117,632expected "51244596497959 ", got "51242449014312 "stderr
2Jun 29, 2026 22:544,79712,627,2504,222,00002,117,632stderr
3Jun 29, 2026 22:545,28612,317,2224,652,00002,117,632stderr