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 20:42Josu San MartinJosu San MartinScore: 5,444Success
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 20:455,40212,264,6884,754,00002,113,536
2Jun 22, 2026 20:455,41312,240,9204,764,00002,113,536
3Jun 22, 2026 20:455,41412,228,8184,765,00002,113,536
4Jun 22, 2026 20:455,41412,324,6674,765,00002,113,536
5Jun 22, 2026 20:455,44413,152,9434,791,00002,113,536
6Jun 22, 2026 20:455,49012,307,4934,832,00002,113,536
7Jun 22, 2026 20:455,50712,273,1834,847,00002,113,536
8Jun 22, 2026 20:455,51113,677,7624,850,00002,113,536
9Jun 22, 2026 20:455,55112,423,7594,885,00002,113,536