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:55Josu San MartinJosu San MartinScore: 6,642Success
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 14:006,45413,252,8625,680,00002,113,536
2Jun 22, 2026 14:006,52813,285,1505,745,00002,113,536
3Jun 22, 2026 14:006,56013,292,2355,773,00002,113,536
4Jun 22, 2026 14:006,56413,287,4375,777,00002,113,536
5Jun 22, 2026 14:006,64213,359,1385,845,00002,113,536
6Jun 22, 2026 14:006,70113,444,0285,897,00002,113,536
7Jun 22, 2026 14:006,72313,828,3755,917,00002,113,536
8Jun 22, 2026 14:006,74713,436,5245,938,00002,113,536
9Jun 22, 2026 14:006,82313,744,8376,005,00002,113,536