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 listMar 18, 2026 14:56limanjun99limanjun99Score: 61,906Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 18, 2026 14:5661,65683,703,82951,243,0003,014,0002,281,472
2Mar 18, 2026 14:5661,74576,594,08853,330,0001,006,0002,400,256
3Mar 18, 2026 14:5661,78180,868,85352,354,0002,013,0002,396,160
4Mar 18, 2026 14:5661,83480,660,19851,391,0003,023,0002,260,992
5Mar 18, 2026 14:5661,90676,933,39652,460,0002,017,0002,404,352
6Mar 18, 2026 14:5661,95878,070,90653,514,0001,009,0002,400,256
7Mar 18, 2026 14:5662,00377,054,89852,543,0002,020,0002,396,160
8Mar 18, 2026 14:5662,01380,931,17852,550,0002,021,0002,367,488
9Mar 18, 2026 14:5662,36388,838,36754,879,00002,416,640