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, 2025 07:07matsuoka-601matsuoka-601Score: 11,257Success
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, 2025 07:0710,95232,182,1819,638,00002,486,272
2Jan 18, 2025 07:0710,97423,649,0688,584,0001,073,0002,486,272
3Jan 18, 2025 07:0711,07428,430,8878,663,0001,082,0002,494,464
4Jan 18, 2025 07:0711,08331,811,4258,670,0001,083,0002,498,560
5Jan 18, 2025 07:0711,10928,749,1438,690,0001,086,0002,486,272
6Jan 18, 2025 07:0711,13228,027,6408,708,0001,088,0002,498,560
7Jan 18, 2025 07:0711,25727,382,6749,906,00002,510,848
8Jan 18, 2025 07:0711,26425,487,5646,939,0002,973,0002,318,336
9Jan 18, 2025 07:0711,26828,012,2549,916,00002,502,656
10Jan 18, 2025 07:0711,26826,550,0348,925,000991,0002,494,464
11Jan 18, 2025 07:0711,27524,012,0798,930,000992,0002,310,144
12Jan 18, 2025 07:0711,33228,104,6097,978,0001,994,0002,310,144