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:47Victor MerckléVictor MerckléScore: 4,728Success
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:504,59711,795,6534,046,00002,117,632stderr
2Jun 29, 2026 22:504,68711,795,4854,125,00002,117,632stderr
3Jun 29, 2026 22:504,68912,089,4864,127,00002,117,632stderr
4Jun 29, 2026 22:504,70011,766,8584,136,00002,117,632stderr
5Jun 29, 2026 22:504,72811,832,9724,161,00002,117,632stderr
6Jun 29, 2026 22:504,75511,923,3634,185,00002,117,632stderr
7Jun 29, 2026 22:504,83511,916,4644,255,00002,117,632stderr
8Jun 29, 2026 22:504,89811,987,4654,311,00002,117,632stderr
9Jun 29, 2026 22:505,15612,211,0274,538,00002,117,632stderr