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:20Victor MerckléVictor MerckléScore: 43,673Success
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:2343,63947,192,97338,403,000024,576stderr
2Sep 3, 2026 00:2343,64647,324,55138,409,000024,576stderr
3Sep 3, 2026 00:2343,65246,559,96038,414,000024,576stderr
4Sep 3, 2026 00:2343,67047,172,10738,430,000024,576stderr
5Sep 3, 2026 00:2343,67347,230,92438,433,000024,576stderr
6Sep 3, 2026 00:2343,68547,184,20238,443,000024,576stderr
7Sep 3, 2026 00:2343,69547,287,66638,452,000024,576stderr
8Sep 3, 2026 00:2343,69547,174,44438,452,000024,576stderr
9Sep 3, 2026 00:2343,70346,583,99138,459,000024,576stderr