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 03:33Victor MerckléVictor MerckléScore: 4,788Success
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 03:364,66911,848,5444,109,00002,117,632stderr
2Jul 1, 2026 03:364,67211,832,2944,112,00002,117,632stderr
3Jul 1, 2026 03:364,67811,842,6824,117,00002,117,632stderr
4Jul 1, 2026 03:364,69411,835,5764,131,00002,117,632stderr
5Jul 1, 2026 03:364,78811,904,2764,214,00002,117,632stderr
6Jul 1, 2026 03:364,80212,236,3874,226,00002,117,632stderr
7Jul 1, 2026 03:364,81011,882,9964,233,00002,117,632stderr
8Jul 1, 2026 03:364,84312,279,7424,262,00002,117,632stderr
9Jul 1, 2026 03:364,86311,937,8244,280,00002,117,632stderr