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 01:30Josu San MartinJosu San MartinScore: 20,117Success
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 01:3019,91839,927,93216,497,0001,031,0002,449,408
2Jan 18, 2026 01:2820,01535,583,16615,541,0002,072,0002,527,232
3Jan 18, 2026 01:2820,04335,055,29616,601,0001,037,0002,445,312
4Jan 18, 2026 01:2820,11745,305,86116,662,0001,041,0002,514,944
5Jan 18, 2026 01:3020,13542,090,15315,635,0002,084,0002,453,504
6Jan 18, 2026 01:3020,17444,833,17816,709,0001,044,0002,363,392