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:48Josu San MartinJosu San MartinScore: 5,868Success
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:515,76712,612,9235,075,00002,113,536
2Jun 22, 2026 16:515,76912,600,3405,077,00002,113,536
3Jun 22, 2026 16:515,78612,666,4285,092,00002,113,536
4Jun 22, 2026 16:515,86712,646,7595,163,00002,113,536
5Jun 22, 2026 16:515,86812,966,9805,164,00002,113,536
6Jun 22, 2026 16:515,89612,655,5095,189,00002,113,536
7Jun 22, 2026 16:515,99012,802,8695,272,00002,113,536
8Jun 22, 2026 16:516,02313,989,0505,301,00002,113,536
9Jun 22, 2026 16:516,10712,906,1945,375,00002,113,536