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 listApr 25, 2026 23:14olliecrowolliecrowScore: 133,934Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 23:15133,367131,429,686116,360,0001,003,0002,367,488stderr
2Apr 25, 2026 23:15133,479131,697,715116,459,0001,003,0002,375,680stderr
3Apr 25, 2026 23:15133,760132,403,413116,703,0001,006,0002,367,488stderr
4Apr 25, 2026 23:15133,763138,217,468116,706,0001,006,0002,375,680stderr
5Apr 25, 2026 23:15133,934129,442,797115,865,0001,997,0002,367,488stderr
6Apr 25, 2026 23:15133,947134,113,824115,877,0001,997,0002,375,680stderr
7Apr 25, 2026 23:15134,005137,720,645115,927,0001,998,0002,375,680stderr
8Apr 25, 2026 23:15134,086135,175,354115,997,0001,999,0002,371,584stderr
9Apr 25, 2026 23:15135,063141,929,689116,859,0001,997,0002,359,296stderr