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 8, 2026 00:29Victor MerckléVictor MerckléScore: 7,520Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2026 00:327,40613,811,1166,518,00002,113,536
2Jun 8, 2026 00:327,42313,862,3176,533,00002,113,536
3Jun 8, 2026 00:327,49513,821,5876,596,00002,113,536
4Jun 8, 2026 00:327,51514,147,9996,614,00002,113,536
5Jun 8, 2026 00:327,52015,452,3106,618,00002,113,536
6Jun 8, 2026 00:327,52214,224,7536,620,00002,113,536
7Jun 8, 2026 00:327,52314,406,0356,621,00002,113,536
8Jun 8, 2026 00:327,55214,055,9716,646,00002,113,536
9Jun 8, 2026 00:327,60214,284,7526,690,00002,113,536