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 23, 2026 12:50Victor MerckléVictor MerckléScore: 5,981Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 12:535,86412,727,0765,161,00002,117,632stderr
2Jun 23, 2026 12:535,96013,150,3895,245,00002,117,632stderr
3Jun 23, 2026 12:535,97312,816,7365,257,00002,117,632stderr
4Jun 23, 2026 12:535,98112,787,6755,264,00002,117,632stderr
5Jun 23, 2026 12:535,98113,282,2465,264,00002,117,632stderr
6Jun 23, 2026 12:535,98912,820,0415,271,00002,117,632stderr
7Jun 23, 2026 12:536,01313,166,4035,292,00002,117,632stderr
8Jun 23, 2026 12:536,06313,249,4705,336,00002,117,632stderr
9Jun 23, 2026 12:536,41413,196,2165,645,00002,117,632stderr