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 15:43Josu San MartinJosu San MartinScore: 5,877Success
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 15:465,75512,616,2005,065,00002,113,536
2Jun 22, 2026 15:465,76112,636,1845,070,00002,113,536
3Jun 22, 2026 15:465,76312,587,2205,072,00002,113,536
4Jun 22, 2026 15:465,80212,715,1505,106,00002,113,536
5Jun 22, 2026 15:465,87712,656,3515,172,00002,113,536
6Jun 22, 2026 15:465,88912,671,1825,183,00002,113,536
7Jun 22, 2026 15:465,90112,650,4795,193,00002,113,536
8Jun 22, 2026 15:465,93712,743,4175,225,00002,113,536
9Jun 22, 2026 15:466,03912,893,2435,315,00002,113,536