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

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 08:504,50911,743,0173,968,00002,117,632stderr
2Jul 4, 2026 08:504,52911,825,7453,986,00002,117,632stderr
3Jul 4, 2026 08:504,61011,828,2384,057,00002,117,632stderr
4Jul 4, 2026 08:504,63211,867,2874,077,00002,117,632stderr
5Jul 4, 2026 08:504,63411,834,2694,078,00002,117,632stderr
6Jul 4, 2026 08:504,64012,167,5214,084,00002,117,632stderr
7Jul 4, 2026 08:504,65211,822,6294,094,00002,117,632stderr
8Jul 4, 2026 08:504,65711,899,4694,099,00002,117,632stderr
9Jul 4, 2026 08:504,73011,969,8554,163,00002,117,632stderr