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 29, 2026 10:48olliecrowolliecrowScore: 12,720Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 10:4812,58928,213,2729,065,0002,014,0002,342,912
2Apr 29, 2026 10:4812,60730,622,8779,078,0002,017,0002,330,624
3Apr 29, 2026 10:4812,64628,268,1749,106,0002,023,0002,330,624
4Apr 29, 2026 10:4812,71325,870,25310,171,0001,017,0002,334,720
5Apr 29, 2026 10:4812,72027,058,36711,194,00002,326,528
6Apr 29, 2026 10:4812,74228,288,93510,194,0001,019,0002,334,720
7Apr 29, 2026 10:4812,84228,139,38111,301,00002,326,528
8Apr 29, 2026 10:4812,87733,850,00110,302,0001,030,0002,338,816
9Apr 29, 2026 10:4812,88030,995,42310,305,0001,030,0002,338,816