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 listNov 4, 2025 14:58Mikhail ShirokovMikhail ShirokovScore: 116,413Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 4, 2025 14:58115,743131,835,01499,857,0001,997,0002,277,376
2Nov 4, 2025 14:58116,066125,758,961100,136,0002,002,0002,277,376
3Nov 4, 2025 14:58116,100122,013,077100,165,0002,003,0002,383,872
4Nov 4, 2025 14:58116,219130,000,255101,271,0001,002,0002,277,376
5Nov 4, 2025 14:58116,413134,560,302101,439,0001,004,0002,277,376
6Nov 4, 2025 14:58116,550126,167,409101,559,0001,005,0002,277,376
7Nov 4, 2025 14:58116,575124,624,603101,581,0001,005,0002,277,376
8Nov 4, 2025 14:58116,865137,717,943100,845,0001,996,0002,277,376
9Nov 4, 2025 14:58116,942125,383,358100,911,0001,998,0002,260,992