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 10:08Josu San MartinJosu San MartinScore: 7,171Success
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 10:117,12313,654,2186,269,00002,117,632
2Jun 22, 2026 10:117,13613,698,4416,280,00002,117,632
3Jun 22, 2026 10:117,14313,731,1116,286,00002,117,632
4Jun 22, 2026 10:117,15413,672,1126,296,00002,117,632
5Jun 22, 2026 10:117,17113,756,4086,311,00002,117,632
6Jun 22, 2026 10:117,25013,694,9575,356,0001,024,0002,117,632
7Jun 22, 2026 10:117,25013,701,5545,340,0001,040,0002,117,632
8Jun 22, 2026 10:117,26313,777,0755,355,0001,037,0002,117,632
9Jun 22, 2026 10:117,26813,801,3055,350,0001,046,0002,117,632