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 17:33Josu San MartinJosu San MartinScore: 5,640Success
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 17:365,51112,418,6474,850,00002,113,536
2Jun 22, 2026 17:365,60712,484,2654,935,00002,113,536
3Jun 22, 2026 17:365,62912,420,6884,954,00002,113,536
4Jun 22, 2026 17:365,63612,762,0924,960,00002,113,536
5Jun 22, 2026 17:365,64012,448,4044,964,00002,113,536
6Jun 22, 2026 17:365,65012,423,0304,972,00002,113,536
7Jun 22, 2026 17:365,66812,816,1004,988,00002,113,536
8Jun 22, 2026 17:365,66912,442,9044,989,00002,113,536
9Jun 22, 2026 17:365,69313,466,5295,010,00002,113,536