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 17, 2026 15:22Josu San MartinJosu San MartinScore: 19,916Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 15:2219,85135,729,33016,442,0001,027,0002,359,296
2Jan 17, 2026 15:2219,86533,019,66517,481,00002,289,664
3Jan 17, 2026 15:2219,87633,022,33616,463,0001,028,0002,355,200
4Jan 17, 2026 15:2219,89533,490,82517,508,00002,359,296
5Jan 17, 2026 15:2219,91642,209,87717,526,00002,359,296
6Jan 17, 2026 15:2219,93039,987,16217,538,00002,359,296
7Jan 17, 2026 15:2219,93541,278,98717,543,00002,367,488
8Jan 17, 2026 15:2220,19845,561,00216,729,0001,045,0002,359,296
9Jan 17, 2026 15:2220,30838,037,57716,879,000992,0002,363,392