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 23:41Josu San MartinJosu San MartinScore: 5,365Success
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 23:445,24512,133,7254,616,00002,113,536
2Jun 22, 2026 23:445,34812,187,4124,707,00002,113,536
3Jun 22, 2026 23:445,35512,543,5554,713,00002,113,536
4Jun 22, 2026 23:445,35512,496,1394,713,00002,113,536
5Jun 22, 2026 23:445,36512,507,9274,722,00002,113,536
6Jun 22, 2026 23:445,36812,193,1944,724,00002,113,536
7Jun 22, 2026 23:445,38112,290,8524,736,00002,113,536
8Jun 22, 2026 23:445,81512,583,1075,118,00002,113,536
9Jun 22, 2026 23:445,81912,395,6525,121,00002,113,536