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 27, 2026 15:11Pavel SkripkinPavel SkripkinScore: 38,967Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2026 15:1238,78851,831,61532,127,0002,007,0002,433,024
2Apr 27, 2026 15:1238,80149,539,90033,141,0001,004,0002,420,736
3Apr 27, 2026 15:1238,93850,238,37533,259,0001,007,0002,334,720
4Apr 27, 2026 15:1238,94846,580,07833,267,0001,008,0002,334,720
5Apr 27, 2026 15:1238,96756,876,08733,283,0001,008,0002,441,216
6Apr 27, 2026 15:1238,97049,094,76833,286,0001,008,0002,420,736
7Apr 27, 2026 15:1239,06449,712,90033,366,0001,011,0002,437,120
8Apr 27, 2026 15:1239,06451,521,91533,366,0001,011,0002,334,720
9Apr 27, 2026 15:1239,19451,149,27133,477,0001,014,0002,330,624