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 listMay 19, 2026 07:14Josu San MartinJosu San MartinScore: 6,796,906Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2026 07:206,761,6965,959,924,6465,949,293,0001,000,0002,113,536
2May 19, 2026 07:206,771,1635,970,065,4585,957,621,0001,003,0002,113,536
3May 19, 2026 07:206,795,5365,989,789,6255,979,072,0001,000,0002,113,536
4May 19, 2026 07:206,796,6955,990,760,9425,979,049,0002,043,0002,113,536
5May 19, 2026 07:206,796,9065,993,075,1995,980,277,0001,001,0002,113,536
6May 19, 2026 07:206,798,0765,991,953,5135,981,307,0001,000,0002,113,536
7May 19, 2026 07:206,801,7035,996,718,9385,983,413,0002,086,0002,113,536
8May 19, 2026 07:206,812,6866,004,613,8905,994,143,0001,021,0002,113,536
9May 19, 2026 07:206,817,4206,009,016,3745,997,217,0002,113,0002,113,536