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 18:58Josu San MartinJosu San MartinScore: 5,532Success
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 19:015,40412,263,6194,756,00002,113,536
2Jun 22, 2026 19:015,52212,293,3274,860,00002,113,536
3Jun 22, 2026 19:015,52512,325,3284,862,00002,113,536
4Jun 22, 2026 19:015,52712,541,7634,864,00002,113,536
5Jun 22, 2026 19:015,53212,420,7174,869,00002,113,536
6Jun 22, 2026 19:015,53812,561,8784,874,00002,113,536
7Jun 22, 2026 19:015,54312,644,7834,878,00002,113,536
8Jun 22, 2026 19:015,73712,880,7005,049,00002,113,536
9Jun 22, 2026 19:016,00112,726,2965,281,00002,113,536