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:01Josu San MartinJosu San MartinScore: 65,263Success
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:0264,93979,937,31555,141,0002,005,0002,285,568
2Jan 16, 2026 04:0165,13080,586,70656,309,0001,005,0002,469,888
3Jan 16, 2026 04:0265,22277,400,19157,395,00002,367,488
4Jan 16, 2026 04:0165,26387,674,74656,424,0001,007,0002,367,488
5Jan 16, 2026 04:0265,61182,368,96756,726,0001,012,0002,367,488
6Jan 16, 2026 04:0165,76489,197,40656,875,000997,0002,363,392