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 10, 2026 18:23Victor MerckléVictor MerckléScore: 8,545Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 10, 2026 18:278,46417,748,0966,209,0001,240,0002,142,208
2Jun 10, 2026 18:278,51516,868,1046,233,0001,261,0002,142,208
3Jun 10, 2026 18:278,53816,975,8406,254,0001,260,0002,142,208
4Jun 10, 2026 18:278,54216,611,5916,230,0001,287,0002,142,208
5Jun 10, 2026 18:278,54516,977,8026,362,0001,158,0002,142,208
6Jun 10, 2026 18:278,56716,483,1926,351,0001,188,0002,142,208
7Jun 10, 2026 18:278,56916,816,9546,256,0001,285,0002,142,208
8Jun 10, 2026 18:278,66515,122,1496,390,0001,236,0002,138,112
9Jun 10, 2026 18:278,67815,247,6186,397,0001,240,0002,142,208