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 8, 2024 13:48Ivan BessonovIvan BessonovScore: 48,344Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2024 13:4843,79997,009,64538,542,95402,252,800
2May 8, 2024 13:4843,80992,317,94838,551,82902,252,800
3May 8, 2024 13:4843,922117,097,74638,651,65502,252,800
4May 8, 2024 13:4848,26067,116,61241,458,0001,011,0002,289,664
5May 8, 2024 13:4848,27468,238,62141,470,0001,011,0002,289,664
6May 8, 2024 13:4848,31563,351,90641,505,0001,012,0002,289,664
7May 8, 2024 13:4848,34464,412,26941,531,0001,012,0002,289,664
8May 8, 2024 13:4848,36464,156,30141,547,0001,013,0002,273,280
9May 8, 2024 13:4848,36765,995,82741,550,0001,013,0002,289,664
10May 8, 2024 13:4848,42365,309,29641,598,0001,014,0002,289,664
11May 8, 2024 13:4848,52268,455,26241,683,0001,016,0002,273,280
12May 8, 2024 13:4848,52368,426,62341,684,0001,016,0002,289,664