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 22, 2026 13:54Josu San MartinJosu San MartinScore: 6,592Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 22, 2026 13:576,52513,337,3235,742,00002,113,536
2Jun 22, 2026 13:576,57113,229,3615,783,00002,113,536
3Jun 22, 2026 13:576,57113,311,8215,783,00002,113,536
4Jun 22, 2026 13:576,59013,304,7405,800,00002,113,536
5Jun 22, 2026 13:576,59213,304,6825,801,00002,113,536
6Jun 22, 2026 13:576,60921,518,8374,811,0001,005,0002,113,536
7Jun 22, 2026 13:576,70513,458,9595,901,00002,113,536
8Jun 22, 2026 13:576,75213,436,1284,856,0001,086,0002,113,536
9Jun 22, 2026 13:576,80013,490,0755,984,00002,113,536