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 16, 2026 04:02Josu San MartinJosu San MartinScore: 69,039Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 16, 2026 04:0268,75284,386,17459,494,0001,008,0002,359,296
2Jan 16, 2026 04:0268,84586,510,51859,575,0001,009,0002,289,664
3Jan 16, 2026 04:0268,93191,943,95160,659,00002,289,664
4Jan 16, 2026 04:0269,03986,932,06460,754,00002,289,664
5Jan 16, 2026 04:0269,04188,453,44059,744,0001,012,0002,359,296
6Jan 16, 2026 04:0269,18687,007,24159,886,000998,0002,289,664