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 listJun 26, 2026 22:41Victor MerckléVictor MerckléScore: 5,118Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2026 22:444,99711,935,5654,398,00002,113,536
2Jun 26, 2026 22:445,01211,931,1944,411,00002,113,536
3Jun 26, 2026 22:445,02511,924,2194,422,00002,113,536
4Jun 26, 2026 22:445,11011,930,6254,497,00002,113,536
5Jun 26, 2026 22:445,11811,943,7654,504,00002,113,536
6Jun 26, 2026 22:445,13012,286,9084,515,00002,113,536
7Jun 26, 2026 22:445,13111,983,2534,516,00002,113,536
8Jun 26, 2026 22:445,14512,025,9694,528,00002,113,536
9Jun 26, 2026 22:445,23112,414,6904,604,00002,113,536