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 listMay 5, 2024 16:09Ivan BessonovIvan BessonovScore: 48,732Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 16:0944,713115,322,15039,347,37002,252,800
2May 5, 2024 16:0944,82897,410,98039,449,05202,256,896
3May 5, 2024 16:0944,897112,669,40139,509,24902,260,992
4May 5, 2024 16:0948,36370,239,26541,546,0001,013,0002,289,664
5May 5, 2024 16:0948,46969,818,24841,638,0001,015,0002,289,664
6May 5, 2024 16:0948,48970,532,35341,655,0001,015,0002,281,472
7May 5, 2024 16:0948,73269,030,80541,887,000997,0002,289,664
8May 5, 2024 16:0948,74268,224,11540,898,0001,995,0002,289,664
9May 5, 2024 16:0948,75366,325,53040,908,0001,995,0002,273,280
10May 5, 2024 16:0948,75866,207,21440,912,0001,995,0002,277,376
11May 5, 2024 16:0948,76966,914,18741,919,000998,0002,273,280
12May 5, 2024 16:0948,83075,157,71240,972,0001,998,0002,289,664