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 30, 2026 20:49olliecrowolliecrowScore: 13,076Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 20:5212,79726,267,7369,215,0002,047,0002,498,560
2Apr 30, 2026 20:5212,92019,573,1839,303,0002,067,0002,326,528
3Apr 30, 2026 20:5212,96731,127,3029,337,0002,074,0002,473,984
4Apr 30, 2026 20:5212,98430,432,8789,349,0002,077,0002,473,984
5Apr 30, 2026 20:5213,07619,524,1709,415,0002,092,0002,334,720
6Apr 30, 2026 20:5213,19619,592,39010,558,0001,055,0002,322,432
7Apr 30, 2026 20:5213,24619,660,97510,492,0001,165,0002,564,096
8Apr 30, 2026 20:5213,27519,665,3969,558,0002,124,0002,560,000
9Apr 30, 2026 20:5213,33519,617,91410,669,0001,066,0002,334,720