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:31Josu San MartinJosu San MartinScore: 5,577Success
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:345,49412,453,6524,835,00002,113,536
2Jun 22, 2026 20:345,56212,383,1904,895,00002,113,536
3Jun 22, 2026 20:345,56412,369,2424,897,00002,113,536
4Jun 22, 2026 20:345,57512,330,1034,906,00002,113,536
5Jun 22, 2026 20:345,57712,390,9974,908,00002,113,536
6Jun 22, 2026 20:345,59012,364,7984,920,00002,113,536
7Jun 22, 2026 20:345,59512,806,0494,924,00002,113,536
8Jun 22, 2026 20:345,61212,760,6884,939,00002,113,536
9Jun 22, 2026 20:345,88812,935,1195,182,00002,113,536