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 listJul 21, 2023 17:16gchebanovgchebanovScore: 36,468Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 21, 2023 17:1636,25156,670,39628,911,0002,990,0002,293,760
2Jul 21, 2023 17:1636,37355,321,55130,008,0002,000,0002,285,568
3Jul 21, 2023 17:1636,38859,215,24130,020,0002,001,0002,285,568
4Jul 21, 2023 17:1636,39158,585,29729,022,0003,002,0002,367,488
5Jul 21, 2023 17:1636,41658,139,98930,044,0002,002,0002,289,664
6Jul 21, 2023 17:1636,42455,865,50229,048,0003,005,0002,359,296
7Jul 21, 2023 17:1636,46855,358,08129,084,0003,008,0002,289,664
8Jul 21, 2023 17:1636,50356,783,47529,112,0003,011,0002,285,568
9Jul 21, 2023 17:1636,64353,927,24030,231,0002,015,0002,281,472
10Jul 21, 2023 17:1638,16491,122,28333,584,52302,207,744
11Jul 21, 2023 17:1638,27885,878,61433,684,30502,211,840
12Jul 21, 2023 17:1638,28193,765,34433,687,42102,211,840