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 19:18olliecrowolliecrowScore: 13,270Success
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 19:1813,21431,062,10310,572,0001,057,0002,342,912
2Apr 24, 2026 19:1813,22030,587,76210,577,0001,057,0002,334,720
3Apr 24, 2026 19:1813,25128,775,48010,601,0001,060,0002,326,528
4Apr 24, 2026 19:1813,26729,280,83010,614,0001,061,0002,342,912
5Apr 24, 2026 19:1813,27026,514,22210,617,0001,061,0002,330,624
6Apr 24, 2026 19:1813,32631,012,98610,661,0001,066,0002,334,720
7Apr 24, 2026 19:1813,50230,558,4649,902,0001,980,0002,334,720
8Apr 24, 2026 19:1813,75227,822,40410,085,0002,017,0002,330,624
9Apr 24, 2026 19:1813,97130,299,46411,271,0001,024,0002,347,008