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 listFeb 14, 2026 22:05olliecrowolliecrowScore: 21,340Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 14, 2026 22:0521,17842,948,19518,637,00002,404,352
2Feb 14, 2026 22:0521,21143,120,39518,666,00002,281,472
3Feb 14, 2026 22:0521,21943,568,85718,673,00002,527,232
4Feb 14, 2026 22:0521,28845,294,91318,733,00002,514,944
5Feb 14, 2026 22:0521,34044,927,10016,693,0002,086,0002,514,944
6Feb 14, 2026 22:0521,47850,530,56718,901,00002,514,944
7Feb 14, 2026 22:0521,48447,674,75117,911,000995,0002,457,600
8Feb 14, 2026 22:0521,48850,011,51218,909,00002,523,136
9Feb 14, 2026 22:0521,49046,789,37017,916,000995,0002,514,944