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 listJan 18, 2026 06:15mgildermgilderScore: 85,865Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2026 06:1585,574102,748,64374,301,0001,004,0002,363,392
2Jan 18, 2026 06:1585,60596,189,41275,332,00002,355,200
3Jan 18, 2026 06:1585,733102,282,33674,440,0001,005,0002,359,296
4Jan 18, 2026 06:1585,823100,208,24375,524,00002,289,664
5Jan 18, 2026 06:1585,86595,481,28074,554,0001,007,0002,289,664
6Jan 18, 2026 06:1585,88299,997,55574,569,0001,007,0002,351,104
7Jan 18, 2026 06:1585,972102,637,73974,647,0001,008,0002,371,584
8Jan 18, 2026 06:1586,216104,312,91473,874,0001,996,0002,355,200
9Jan 18, 2026 06:1586,343102,470,43474,983,000999,0002,289,664