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 10:50olliecrowolliecrowScore: 13,443Success
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 10:5113,35628,723,12610,686,0001,068,0002,326,528
2Apr 25, 2026 10:5113,36827,585,84210,695,0001,069,0002,334,720
3Apr 25, 2026 10:5113,38232,837,05310,707,0001,070,0002,330,624
4Apr 25, 2026 10:5113,39028,442,91710,713,0001,071,0002,342,912
5Apr 25, 2026 10:5113,44329,256,9959,859,0001,971,0002,338,816
6Apr 25, 2026 10:5113,54228,944,5369,931,0001,986,0002,330,624
7Apr 25, 2026 10:5113,70128,062,16110,048,0002,009,0002,326,528
8Apr 25, 2026 10:5114,25336,090,79911,498,0001,045,0002,396,160
9Apr 25, 2026 10:5114,65628,659,95210,914,0001,984,0002,338,816