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 17:50Victor MerckléVictor MerckléScore: 5,151Success
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 17:525,04512,217,4234,440,00002,117,632stderr
2Jul 1, 2026 17:525,05212,256,3184,446,00002,117,632stderr
3Jul 1, 2026 17:525,14512,218,8444,528,00002,117,632stderr
4Jul 1, 2026 17:525,14512,235,1344,528,00002,117,632stderr
5Jul 1, 2026 17:525,15112,228,9764,533,00002,117,632stderr
6Jul 1, 2026 17:525,16712,578,8094,547,00002,117,632stderr
7Jul 1, 2026 17:525,16812,573,9454,548,00002,117,632stderr
8Jul 1, 2026 17:525,18112,534,4444,560,00002,117,632stderr
9Jul 1, 2026 17:525,32312,408,0704,685,00002,117,632stderr