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 listJun 21, 2026 23:02Josu San MartinJosu San MartinScore: 19,413Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 23:0419,32626,070,33914,889,0002,118,0002,113,536
2Jun 21, 2026 23:0419,36226,042,09514,897,0002,142,0002,113,536
3Jun 21, 2026 23:0419,36327,441,41814,891,0002,149,0002,113,536
4Jun 21, 2026 23:0419,37826,057,98614,949,0002,104,0002,113,536
5Jun 21, 2026 23:0419,41326,055,30914,973,0002,111,0002,113,536
6Jun 21, 2026 23:0419,42226,125,41314,975,0002,117,0002,113,536
7Jun 21, 2026 23:0419,55526,143,92015,080,0002,129,0002,113,536
8Jun 21, 2026 23:0419,68226,368,48615,210,0002,111,0002,113,536
9Jun 21, 2026 23:0419,86926,607,29614,960,0002,525,0002,113,536