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 listFeb 14, 2026 12:12olliecrowolliecrowScore: 41,394Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 14, 2026 12:1241,23457,396,84236,286,00002,490,368
2Feb 14, 2026 12:1241,23558,512,17736,287,00002,494,464
3Feb 14, 2026 12:1241,33660,395,53736,376,00002,498,560
4Feb 14, 2026 12:1241,37357,087,64536,408,00002,502,656
5Feb 14, 2026 12:1241,39462,087,72736,427,00002,535,424
6Feb 14, 2026 12:1241,39559,286,21236,428,00002,494,464
7Feb 14, 2026 12:1241,39960,432,19136,431,00002,535,424
8Feb 14, 2026 12:1241,43256,765,15936,460,00002,490,368
9Feb 14, 2026 12:1241,53558,772,18736,551,00002,498,560