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 1, 2026 18:04Victor MerckléVictor MerckléScore: 4,750Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 1, 2026 18:074,61911,865,2214,065,00002,117,632stderr
2Jul 1, 2026 18:074,63211,814,8694,077,00002,117,632stderr
3Jul 1, 2026 18:074,63511,923,3544,079,00002,117,632stderr
4Jul 1, 2026 18:074,74311,858,9464,174,00002,117,632stderr
5Jul 1, 2026 18:074,75011,856,6304,180,00002,117,632stderr
6Jul 1, 2026 18:074,76211,911,0704,191,00002,117,632stderr
7Jul 1, 2026 18:074,89612,078,9624,309,00002,117,632stderr
8Jul 1, 2026 18:075,26012,342,4384,629,00002,117,632stderr
9Jul 1, 2026 18:075,29812,378,2904,663,00002,117,632stderr