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 3, 2026 12:47Victor MerckléVictor MerckléScore: 4,500Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2026 12:504,46911,705,7083,933,00002,117,632stderr
2Jul 3, 2026 12:504,47011,684,8703,934,00002,117,632stderr
3Jul 3, 2026 12:504,47111,759,3883,935,00002,117,632stderr
4Jul 3, 2026 12:504,47511,701,4343,938,00002,117,632stderr
5Jul 3, 2026 12:504,50011,736,9473,960,00002,117,632stderr
6Jul 3, 2026 12:504,58712,037,5874,037,00002,117,632stderr
7Jul 3, 2026 12:504,58911,723,1264,039,00002,117,632stderr
8Jul 3, 2026 12:504,59612,075,4944,045,00002,117,632stderr
9Jul 3, 2026 12:504,63911,964,0024,083,00002,117,632stderr