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 listApr 25, 2026 07:36olliecrowolliecrowScore: 14,192Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 07:3614,07330,437,05711,353,0001,032,0002,506,752
2Apr 25, 2026 07:3614,07833,217,53011,357,0001,032,0002,510,848
3Apr 25, 2026 07:3614,11033,750,81611,383,0001,034,0002,506,752
4Apr 25, 2026 07:3614,15628,132,20011,420,0001,038,0002,502,656
5Apr 25, 2026 07:3614,19234,045,05812,489,00002,519,040
6Apr 25, 2026 07:3614,37334,053,10812,649,00002,514,944
7Apr 25, 2026 07:3614,37831,381,10811,599,0001,054,0002,498,560
8Apr 25, 2026 07:3614,38629,690,17411,605,0001,055,0002,506,752
9Apr 25, 2026 07:3614,56825,075,13611,752,0001,068,0002,498,560