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 30, 2026 00:06Victor MerckléVictor MerckléScore: 4,757Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 30, 2026 00:084,74711,937,9814,178,00002,117,632stderr
2Jun 30, 2026 00:084,74811,797,0724,179,00002,117,632stderr
3Jun 30, 2026 00:084,75011,859,2594,180,00002,117,632stderr
4Jun 30, 2026 00:084,75611,877,4094,186,00002,117,632stderr
5Jun 30, 2026 00:084,75711,868,0254,187,00002,117,632stderr
6Jun 30, 2026 00:084,76812,168,7344,196,00002,117,632stderr
7Jun 30, 2026 00:084,77311,859,7774,201,00002,117,632stderr
8Jun 30, 2026 00:084,77512,121,8364,202,00002,117,632stderr
9Jun 30, 2026 00:084,79411,986,6784,219,00002,117,632stderr