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 22, 2026 10:58Pavel SkripkinPavel SkripkinScore: 240,104Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2026 10:58238,810223,159,013210,153,00002,428,928
2Apr 22, 2026 10:58239,342227,495,373209,619,0001,002,0002,428,928
3Apr 22, 2026 10:58239,512230,770,954208,774,0001,997,0002,424,832
4Apr 22, 2026 10:58239,800225,247,581210,024,0001,000,0002,424,832
5Apr 22, 2026 10:58240,104228,324,594210,291,0001,001,0002,428,928
6Apr 22, 2026 10:58240,193224,998,840210,369,0001,001,0002,293,760
7Apr 22, 2026 10:58240,447226,903,971210,592,0001,002,0002,523,136
8Apr 22, 2026 10:58241,040231,087,873211,116,0001,000,0002,424,832
9Apr 22, 2026 10:58241,617229,507,697211,621,0001,002,0002,428,928