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:54Ivan BessonovIvan BessonovScore: 48,827Success
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:5444,143104,097,46338,845,71102,256,896
2May 7, 2024 16:5444,34499,977,54639,022,45602,252,800
3May 7, 2024 16:5444,39797,353,65439,069,40002,260,992
4May 7, 2024 16:5448,74268,545,55440,898,0001,995,0002,289,664
5May 7, 2024 16:5448,76369,510,25741,914,000997,0002,273,280
6May 7, 2024 16:5448,79568,639,07041,942,000998,0002,289,664
7May 7, 2024 16:5448,82772,156,00840,970,0001,998,0002,273,280
8May 7, 2024 16:5448,85364,519,82941,992,000999,0002,269,184
9May 7, 2024 16:5448,89771,019,07441,028,0002,001,0002,289,664
10May 7, 2024 16:5448,92265,598,58941,049,0002,002,0002,269,184
11May 7, 2024 16:5448,97265,124,70641,091,0002,004,0002,289,664
12May 7, 2024 16:5448,98665,238,82941,103,0002,005,0002,289,664