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 4, 2026 00:17vahookvahookScore: 3,852Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 00:173,80517,139,1542,232,0001,116,0002,494,464
2Feb 4, 2026 00:173,81921,452,0962,241,0001,120,0002,498,560
3Feb 4, 2026 00:173,83618,945,6072,251,0001,125,0002,494,464
4Feb 4, 2026 00:173,85222,558,6632,260,0001,130,0002,490,368
5Feb 4, 2026 00:173,85221,586,6882,260,0001,130,0002,494,464
6Feb 4, 2026 00:173,86618,961,2502,268,0001,134,0002,277,376
7Feb 4, 2026 00:173,88119,228,6582,277,0001,138,0002,498,560
8Feb 4, 2026 00:173,89019,364,3652,282,0001,141,0002,277,376
9Feb 4, 2026 00:173,95124,148,1592,318,0001,159,0002,498,560