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 9, 2026 19:07Victor MerckléVictor MerckléScore: 9,211Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 9, 2026 19:139,15116,686,3876,860,0001,193,0002,183,168
2Jun 9, 2026 19:139,18416,848,1896,891,0001,191,0002,142,208
3Jun 9, 2026 19:139,18916,808,6046,974,0001,113,0002,142,208
4Jun 9, 2026 19:139,18916,888,0206,895,0001,192,0002,142,208
5Jun 9, 2026 19:139,21116,840,2206,912,0001,194,0002,142,208
6Jun 9, 2026 19:139,21216,855,7246,993,0001,114,0002,142,208
7Jun 9, 2026 19:139,21316,976,4876,912,0001,196,0002,187,264
8Jun 9, 2026 19:139,21816,882,8676,865,0001,247,0002,142,208
9Jun 9, 2026 19:139,45416,950,8807,146,0001,174,0002,142,208