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 20:12Josu San MartinJosu San MartinScore: 5,453Success
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 20:145,40912,282,8314,760,00002,113,536
2Jun 22, 2026 20:145,41812,285,7914,768,00002,113,536
3Jun 22, 2026 20:145,42712,164,8274,776,00002,113,536
4Jun 22, 2026 20:145,43612,178,5924,784,00002,113,536
5Jun 22, 2026 20:145,45313,344,1204,799,00002,113,536
6Jun 22, 2026 20:145,53112,332,7724,868,00002,113,536
7Jun 22, 2026 20:145,56812,663,2004,900,00002,113,536
8Jun 22, 2026 20:145,91212,677,3725,203,00002,113,536
9Jun 22, 2026 20:145,92612,700,5595,215,00002,113,536