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 23, 2026 06:12Josu San MartinJosu San MartinScore: 5,155Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 06:145,07911,984,0364,470,00002,113,536
2Jun 23, 2026 06:145,08212,059,3684,473,00002,113,536
3Jun 23, 2026 06:145,08812,049,5654,478,00002,113,536
4Jun 23, 2026 06:145,10212,025,2554,490,00002,113,536
5Jun 23, 2026 06:145,15511,938,7534,537,00002,113,536
6Jun 23, 2026 06:145,16812,020,2834,548,00002,113,536
7Jun 23, 2026 06:145,18012,025,5514,559,00002,113,536
8Jun 23, 2026 06:145,19812,364,2474,575,00002,113,536
9Jun 23, 2026 06:145,62512,406,2454,950,00002,113,536