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 listAug 29, 2026 10:20Victor MerckléVictor MerckléScore: 3,221Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 29, 2026 10:243,20311,011,3102,819,00002,117,632stderr
2Aug 29, 2026 10:243,20710,940,2252,823,00002,117,632stderr
3Aug 29, 2026 10:243,21910,999,7132,833,00002,117,632stderr
4Aug 29, 2026 10:243,21910,966,3832,833,00002,117,632stderr
5Aug 29, 2026 10:243,22111,054,5912,835,00002,117,632stderr
6Aug 29, 2026 10:243,30211,079,7572,906,00002,117,632stderr
7Aug 29, 2026 10:243,30411,016,5362,908,00002,117,632stderr
8Aug 29, 2026 10:243,30510,983,7272,909,00002,117,632stderr
9Aug 29, 2026 10:243,31511,654,9342,918,00002,117,632stderr