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 3, 2026 00:35Victor MerckléVictor MerckléScore: 49,984Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 3, 2026 00:3849,95952,095,80543,964,000024,576stderr
2Sep 3, 2026 00:3849,96052,123,95043,965,000024,576stderr
3Sep 3, 2026 00:3849,97352,749,91243,977,000024,576stderr
4Sep 3, 2026 00:3849,98252,242,05743,985,000024,576stderr
5Sep 3, 2026 00:3849,98452,100,33143,986,000024,576stderr
6Sep 3, 2026 00:3849,99052,188,17843,992,000024,576stderr
7Sep 3, 2026 00:3849,99552,762,01343,996,000024,576stderr
8Sep 3, 2026 00:3850,02053,292,87244,018,000024,576stderr
9Sep 3, 2026 00:3850,04552,836,07644,040,000024,576stderr