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 21:26Josu San MartinJosu San MartinScore: 5,405Success
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 21:295,29812,167,7534,663,00002,113,536
2Jun 22, 2026 21:295,34212,160,2764,701,00002,113,536
3Jun 22, 2026 21:295,34312,192,2034,702,00002,113,536
4Jun 22, 2026 21:295,34512,221,0024,704,00002,113,536
5Jun 22, 2026 21:295,40512,029,1684,757,00002,113,536
6Jun 22, 2026 21:295,43412,380,9814,782,00002,113,536
7Jun 22, 2026 21:295,43512,572,5064,783,00002,113,536
8Jun 22, 2026 21:295,43612,578,0654,784,00002,113,536
9Jun 22, 2026 21:295,82912,530,0055,130,00002,113,536