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 05:07olliecrowolliecrowScore: 13,597Success
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 05:0813,36526,414,99110,693,0001,069,0002,338,816stderr
2Apr 25, 2026 05:0813,45328,413,4969,866,0001,973,0002,338,816stderr
3Apr 25, 2026 05:0813,48030,248,7859,886,0001,977,0002,338,816stderr
4Apr 25, 2026 05:0813,56229,322,2499,946,0001,989,0002,347,008stderr
5Apr 25, 2026 05:0813,59726,892,8879,972,0001,994,0002,334,720stderr
6Apr 25, 2026 05:0813,61231,376,6459,983,0001,996,0002,334,720stderr
7Apr 25, 2026 05:0813,67134,107,23110,026,0002,005,0002,326,528stderr
8Apr 25, 2026 05:0813,91830,271,66211,228,0001,020,0002,338,816stderr
9Apr 25, 2026 05:0814,23129,573,93311,481,0001,043,0002,322,432stderr