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 21:24Pavel SkripkinPavel SkripkinScore: 105,584Success
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 21:24105,272109,446,33891,634,0001,006,0002,424,832
2Apr 24, 2026 21:24105,375111,545,41391,723,0001,007,0002,330,624
3Apr 24, 2026 21:24105,432108,678,67290,786,0001,995,0002,424,832
4Apr 24, 2026 21:24105,568109,791,91090,903,0001,997,0002,428,928
5Apr 24, 2026 21:24105,584113,383,71190,916,0001,998,0002,424,832
6Apr 24, 2026 21:24105,592107,480,77590,923,0001,998,0002,424,832
7Apr 24, 2026 21:24105,670111,592,60990,991,0001,999,0002,433,024
8Apr 24, 2026 21:24105,706105,264,90191,022,0002,000,0002,330,624
9Apr 24, 2026 21:24105,930113,972,91992,217,0001,002,0002,433,024