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 11, 2026 07:04Victor MerckléVictor MerckléScore: 7,213Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2026 07:077,05013,469,0576,204,00002,113,536
2Jun 11, 2026 07:077,13613,486,7196,280,00002,113,536
3Jun 11, 2026 07:077,16513,765,3516,306,00002,113,536
4Jun 11, 2026 07:077,16913,607,9836,309,00002,113,536
5Jun 11, 2026 07:077,21313,515,6696,348,00002,113,536
6Jun 11, 2026 07:077,22013,520,5256,354,00002,113,536
7Jun 11, 2026 07:077,23013,547,7026,363,00002,113,536
8Jun 11, 2026 07:077,23413,653,9946,366,00002,113,536
9Jun 11, 2026 07:077,43214,209,3186,541,00002,113,536