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 12:20Josu San MartinJosu San MartinScore: 7,125Success
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 12:237,05514,015,5816,209,00002,113,536
2Jun 22, 2026 12:237,06814,025,4936,220,00002,113,536
3Jun 22, 2026 12:237,07615,323,8826,227,00002,113,536
4Jun 22, 2026 12:237,10413,756,2656,252,00002,113,536
5Jun 22, 2026 12:237,12513,740,0936,270,00002,113,536
6Jun 22, 2026 12:237,14813,775,9846,291,00002,113,536
7Jun 22, 2026 12:237,15113,778,5056,293,00002,113,536
8Jun 22, 2026 12:237,16513,832,5646,306,00002,113,536
9Jun 22, 2026 12:237,17614,127,8565,296,0001,019,0002,113,536