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 17, 2024 07:32Ivan BessonovIvan BessonovScore: 29,615Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 07:3229,30756,379,88224,759,0001,031,0002,277,376
2May 17, 2024 07:3229,47049,729,72124,897,0001,037,0002,273,280
3May 17, 2024 07:3229,51150,661,15323,973,0001,997,0002,269,184
4May 17, 2024 07:3229,53247,741,46823,989,0001,999,0002,289,664
5May 17, 2024 07:3229,54049,159,51823,996,0001,999,0002,289,664
6May 17, 2024 07:3229,54850,549,30525,002,0001,000,0002,289,664
7May 17, 2024 07:3229,61556,695,10125,059,0001,002,0002,289,664
8May 17, 2024 07:3229,64557,187,32524,082,0002,006,0002,289,664
9May 17, 2024 07:3229,71348,644,45624,136,0002,011,0002,289,664
10May 17, 2024 07:3231,74292,374,23527,933,22502,396,160
11May 17, 2024 07:3231,81497,967,61227,995,92502,260,992
12May 17, 2024 07:3231,81595,697,99927,997,59802,260,992