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 24, 2026 05:59olliecrowolliecrowScore: 132,029Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 06:01131,417133,905,906111,660,0003,987,0002,457,600stderr
2Apr 24, 2026 06:01131,689131,846,632111,891,0003,996,0002,347,008stderr
3Apr 24, 2026 06:01131,771129,660,356111,961,0003,998,0002,453,504stderr
4Apr 24, 2026 06:01131,788134,036,911111,975,0003,999,0002,527,232stderr
5Apr 24, 2026 06:01132,029137,336,313112,180,0004,006,0002,453,504stderr
6Apr 24, 2026 06:01132,050132,028,981112,197,0004,007,0002,326,528stderr
7Apr 24, 2026 06:01132,331132,094,360113,441,0003,011,0002,560,000stderr
8Apr 24, 2026 06:01132,363135,625,623113,468,0003,012,0002,347,008stderr
9Apr 24, 2026 06:01132,695141,308,097112,780,0003,992,0002,347,008stderr