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 13:42Josu San MartinJosu San MartinScore: 6,518Success
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 13:456,47513,302,3955,698,00002,113,536
2Jun 22, 2026 13:456,50113,493,6835,721,00002,113,536
3Jun 22, 2026 13:456,50713,190,4785,727,00002,113,536
4Jun 22, 2026 13:456,51513,282,5605,734,00002,113,536
5Jun 22, 2026 13:456,51813,654,7465,736,00002,113,536
6Jun 22, 2026 13:456,56413,289,0095,777,00002,113,536
7Jun 22, 2026 13:456,56413,283,2955,777,00002,113,536
8Jun 22, 2026 13:456,58013,261,8155,791,00002,113,536
9Jun 22, 2026 13:456,81113,519,0654,938,0001,056,0002,113,536