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 listSep 2, 2026 23:00Victor MerckléVictor MerckléScore: 34,855Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 2, 2026 23:0334,82839,381,95930,649,000024,576stderr
2Sep 2, 2026 23:0334,84338,878,07630,662,000024,576stderr
3Sep 2, 2026 23:0334,84539,412,13530,664,000024,576stderr
4Sep 2, 2026 23:0334,85038,915,14330,668,000024,576stderr
5Sep 2, 2026 23:0334,85539,387,93230,673,000024,576stderr
6Sep 2, 2026 23:0334,86138,816,26430,678,000024,576stderr
7Sep 2, 2026 23:0334,86338,771,73930,680,000024,576stderr
8Sep 2, 2026 23:0334,86539,663,81430,682,000024,576stderr
9Sep 2, 2026 23:0335,07039,021,87130,862,000024,576stderr