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 14:16Victor MerckléVictor MerckléScore: 4,879Success
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 14:194,75211,870,0474,182,00002,117,632stderr
2Jun 29, 2026 14:194,78411,987,6134,210,00002,117,632stderr
3Jun 29, 2026 14:194,80912,027,6164,232,00002,117,632stderr
4Jun 29, 2026 14:194,82315,016,3904,245,00002,117,632stderr
5Jun 29, 2026 14:194,87912,295,4034,294,00002,117,632stderr
6Jun 29, 2026 14:194,88112,330,5234,296,00002,117,632stderr
7Jun 29, 2026 14:194,89313,330,3654,306,00002,117,632stderr
8Jun 29, 2026 14:194,92112,345,4504,331,00002,117,632stderr
9Jun 29, 2026 14:194,96812,089,9274,372,00002,117,632stderr