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 listOct 6, 2023 07:43matsuoka-601matsuoka-601Score: 23,065Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 07:4322,63986,039,95819,922,50502,187,264
2Oct 6, 2023 07:4322,64696,648,43919,928,82902,187,264
3Oct 6, 2023 07:4322,67783,724,91519,955,38902,252,800
4Oct 6, 2023 07:4322,93936,512,94916,149,0004,037,0002,289,664
5Oct 6, 2023 07:4322,97848,386,73218,199,0002,022,0002,289,664
6Oct 6, 2023 07:4323,00146,676,55817,205,0003,036,0002,289,664
7Oct 6, 2023 07:4323,06543,615,54416,238,0004,059,0002,453,504
8Oct 6, 2023 07:4323,09947,663,13516,262,0004,065,0002,453,504
9Oct 6, 2023 07:4323,10539,614,75316,266,0004,066,0002,289,664
10Oct 6, 2023 07:4323,13146,989,91316,284,0004,071,0002,523,136
11Oct 6, 2023 07:4323,22546,737,85816,351,0004,087,0002,461,696
12Oct 6, 2023 07:4323,30548,489,37216,407,0004,101,0002,289,664