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 29, 2026 13:48TudyMTudyMScore: 32,998Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 13:5632,88045,846,93126,940,0001,995,0002,371,584
2Apr 29, 2026 13:5632,89448,356,24126,951,0001,996,0002,375,680
3Apr 29, 2026 13:5632,90244,181,44826,958,0001,996,0002,379,776
4Apr 29, 2026 13:5632,91950,644,21325,973,0002,996,0002,306,048
5Apr 29, 2026 13:5632,99850,373,35527,037,0002,002,0002,367,488
6Apr 29, 2026 13:5633,01446,754,89526,048,0003,005,0002,371,584
7Apr 29, 2026 13:5633,02151,191,89726,053,0003,006,0002,387,968
8Apr 29, 2026 13:5633,02846,725,71125,056,0004,009,0002,371,584
9Apr 29, 2026 13:5633,03447,841,87228,068,0001,002,0002,375,680