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 8, 2026 22:30Victor MerckléVictor MerckléScore: 3,734Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2026 22:333,71211,184,5603,267,00002,117,632stderr
2Jul 8, 2026 22:333,71511,155,2983,270,00002,117,632stderr
3Jul 8, 2026 22:333,72011,153,4193,274,00002,117,632stderr
4Jul 8, 2026 22:333,73111,243,7783,284,00002,117,632stderr
5Jul 8, 2026 22:333,73411,200,8353,286,00002,117,632stderr
6Jul 8, 2026 22:333,74411,178,9193,295,00002,117,632stderr
7Jul 8, 2026 22:333,74511,176,9083,296,00002,117,632stderr
8Jul 8, 2026 22:333,82611,207,7623,367,00002,117,632stderr
9Jul 8, 2026 22:333,83811,190,3703,378,00002,117,632stderr