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 7, 2026 03:39Victor MerckléVictor MerckléScore: 3,642Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 03:423,62211,126,8003,188,00002,117,632stderr
2Jul 7, 2026 03:423,62911,089,9093,194,00002,117,632stderr
3Jul 7, 2026 03:423,63411,063,8193,198,00002,117,632stderr
4Jul 7, 2026 03:423,64011,058,3013,204,00002,117,632stderr
5Jul 7, 2026 03:423,64211,052,6103,205,00002,117,632stderr
6Jul 7, 2026 03:423,64511,096,0473,208,00002,117,632stderr
7Jul 7, 2026 03:423,72811,160,0873,281,00002,117,632stderr
8Jul 7, 2026 03:423,72912,324,4793,282,00002,117,632stderr
9Jul 7, 2026 03:423,73611,090,5393,288,00002,117,632stderr