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 16:19Josu San MartinJosu San MartinScore: 5,896Success
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 16:225,78014,336,5845,087,00002,113,536
2Jun 22, 2026 16:225,87712,621,9585,172,00002,113,536
3Jun 22, 2026 16:225,89412,630,5685,187,00002,113,536
4Jun 22, 2026 16:225,89512,729,2485,188,00002,113,536
5Jun 22, 2026 16:225,89612,689,6765,189,00002,113,536
6Jun 22, 2026 16:225,90712,681,1065,199,00002,113,536
7Jun 22, 2026 16:225,91912,632,2595,209,00002,113,536
8Jun 22, 2026 16:225,93512,694,6845,223,00002,113,536
9Jun 22, 2026 16:225,94213,077,9685,229,00002,113,536