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 7, 2024 16:53Ivan BessonovIvan BessonovScore: 48,757Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2024 16:5344,60399,946,45239,250,72802,265,088
2May 7, 2024 16:5344,626104,084,48839,271,14102,260,992
3May 7, 2024 16:5344,654101,097,13839,295,88702,260,992
4May 7, 2024 16:5348,57071,113,55241,725,0001,017,0002,289,664
5May 7, 2024 16:5348,73269,646,32240,890,0001,994,0002,273,280
6May 7, 2024 16:5348,73467,495,15740,892,0001,994,0002,289,664
7May 7, 2024 16:5348,75764,884,88440,911,0001,995,0002,289,664
8May 7, 2024 16:5348,75766,700,19440,911,0001,995,0002,289,664
9May 7, 2024 16:5348,76867,210,47441,918,000998,0002,269,184
10May 7, 2024 16:5348,79470,975,65140,942,0001,997,0002,289,664
11May 7, 2024 16:5348,80969,012,26740,955,0001,997,0002,289,664
12May 7, 2024 16:5348,90670,301,79241,036,0002,001,0002,289,664