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 23, 2026 03:20Josu San MartinJosu San MartinScore: 5,136Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 03:235,01912,007,0924,417,00002,113,536
2Jun 23, 2026 03:235,03011,931,3814,427,00002,113,536
3Jun 23, 2026 03:235,03212,094,4604,429,00002,113,536
4Jun 23, 2026 03:235,04611,957,0964,441,00002,113,536
5Jun 23, 2026 03:235,13611,937,7514,520,00002,113,536
6Jun 23, 2026 03:235,16112,031,2514,542,00002,113,536
7Jun 23, 2026 03:235,16511,967,8104,546,00002,113,536
8Jun 23, 2026 03:235,17911,959,1014,558,00002,113,536
9Jun 23, 2026 03:235,34612,112,1814,705,00002,113,536