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 5, 2024 09:10Ivan BessonovIvan BessonovScore: 45,952Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 09:1045,65168,309,18838,165,0002,008,0002,289,664
2May 5, 2024 09:1045,69865,099,69038,204,0002,010,0002,269,184
3May 5, 2024 09:1045,77863,905,56038,271,0002,014,0002,281,472
4May 5, 2024 09:1045,81662,071,14739,311,0001,007,0002,269,184
5May 5, 2024 09:1045,90168,045,00440,393,00002,289,664
6May 5, 2024 09:1045,90560,060,00739,387,0001,009,0002,289,664
7May 5, 2024 09:1045,95266,487,04239,428,0001,010,0002,265,088
8May 5, 2024 09:1045,98362,706,15739,454,0001,011,0002,265,088
9May 5, 2024 09:1046,07064,113,16039,529,0001,013,0002,269,184
10May 5, 2024 09:1046,223114,215,00940,676,56602,265,088
11May 5, 2024 09:1046,277105,216,72340,724,11102,256,896
12May 5, 2024 09:1046,392118,013,34340,825,15402,260,992