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 listSep 25, 2026 16:00Kevin HeaveyKevin HeaveyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 25, 2026 16:010146,302,233137,209,000020,480Exit with code 3: sz=4000000 mode=8 fs=16914836 np=49105 ev=500057 d3=333573 d5=199432 mn=434 mx=2147481902 eq=0 b:9=1,11=1,12=2,13=2,14=7,15=12,16=13,17=40,18=51,19=114,20=247,21=478,22=1036,23=1944,24=3957,25=7889,26=15738,27=31020,28=62502,29=125471...stderr