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 2, 2026 19:23Victor MerckléVictor MerckléScore: 4,730Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 19:264,60611,894,9144,054,00002,117,632stderr
2Jul 2, 2026 19:264,61411,833,4994,061,00002,117,632stderr
3Jul 2, 2026 19:264,63711,840,6884,081,00002,117,632stderr
4Jul 2, 2026 19:264,70911,899,9484,144,00002,117,632stderr
5Jul 2, 2026 19:264,73012,214,9874,163,00002,117,632stderr
6Jul 2, 2026 19:264,73912,199,9974,171,00002,117,632stderr
7Jul 2, 2026 19:264,73912,170,8164,171,00002,117,632stderr
8Jul 2, 2026 19:264,74311,897,3124,174,00002,117,632stderr
9Jul 2, 2026 19:264,78611,893,1284,212,00002,117,632stderr