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:07Victor MerckléVictor MerckléScore: 3,601Success
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:093,57511,067,8733,146,00002,117,632stderr
2Jul 8, 2026 22:093,58111,457,2893,152,00002,117,632stderr
3Jul 8, 2026 22:093,58111,027,5313,152,00002,117,632stderr
4Jul 8, 2026 22:093,58911,036,8553,159,00002,117,632stderr
5Jul 8, 2026 22:093,60111,165,8493,169,00002,117,632stderr
6Jul 8, 2026 22:093,68011,047,6273,239,00002,117,632stderr
7Jul 8, 2026 22:093,70111,094,9043,257,00002,117,632stderr
8Jul 8, 2026 22:093,70311,107,5953,259,00002,117,632stderr
9Jul 8, 2026 22:093,85611,145,1393,394,00002,117,632stderr