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 22, 2026 16:13Josu San MartinJosu San MartinScore: 5,832Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 22, 2026 16:155,76212,624,5275,071,00002,113,536
2Jun 22, 2026 16:155,79812,547,3295,103,00002,113,536
3Jun 22, 2026 16:155,82212,884,6735,124,00002,113,536
4Jun 22, 2026 16:155,82212,903,1205,124,00002,113,536
5Jun 22, 2026 16:155,83212,589,5035,133,00002,113,536
6Jun 22, 2026 16:155,83612,614,9885,136,00002,113,536
7Jun 22, 2026 16:155,84612,741,2605,145,00002,113,536
8Jun 22, 2026 16:155,86012,660,9465,157,00002,113,536
9Jun 22, 2026 16:155,88012,758,8655,175,00002,113,536