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 listJul 3, 2026 02:07Victor MerckléVictor MerckléScore: 4,554Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2026 02:104,49411,805,7223,955,00002,117,632stderr
2Jul 3, 2026 02:104,49411,749,5133,955,00002,117,632stderr
3Jul 3, 2026 02:104,49411,772,9473,955,00002,117,632stderr
4Jul 3, 2026 02:104,52011,768,0143,978,00002,117,632stderr
5Jul 3, 2026 02:104,55411,800,8094,008,00002,117,632stderr
6Jul 3, 2026 02:104,59511,783,0004,044,00002,117,632stderr
7Jul 3, 2026 02:104,61712,108,8764,063,00002,117,632stderr
8Jul 3, 2026 02:104,62112,107,9804,067,00002,117,632stderr
9Jul 3, 2026 02:104,62611,844,3724,071,00002,117,632stderr