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 16, 2024 21:38Ivan BessonovIvan BessonovScore: 30,782Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 21:3827,24285,736,32823,973,01602,273,280
2May 16, 2024 21:3827,26892,634,14423,995,66602,252,800
3May 16, 2024 21:3827,28385,355,93024,009,05202,265,088
4May 16, 2024 21:3830,72257,616,75926,034,0001,001,0002,269,184
5May 16, 2024 21:3830,74050,423,87426,050,0001,001,0002,289,664
6May 16, 2024 21:3830,77051,926,74125,073,0002,005,0002,277,376
7May 16, 2024 21:3830,78249,079,11525,082,0002,006,0002,281,472
8May 16, 2024 21:3830,79752,680,10425,094,0002,007,0002,387,968
9May 16, 2024 21:3830,79949,746,75725,096,0002,007,0002,289,664
10May 16, 2024 21:3830,79949,477,25225,096,0002,007,0002,285,568
11May 16, 2024 21:3830,80749,661,04825,102,0002,008,0002,289,664
12May 16, 2024 21:3830,86650,649,33925,150,0002,012,0002,265,088