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 08:30Ivan BessonovIvan BessonovScore: 49,027Success
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 08:3048,79566,703,84940,943,0001,997,0002,289,664
2May 5, 2024 08:3048,85269,885,29641,991,000999,0002,289,664
3May 5, 2024 08:3048,91665,741,91041,044,0002,002,0002,289,664
4May 5, 2024 08:3048,95365,564,32541,076,0002,003,0002,289,664
5May 5, 2024 08:3048,95769,207,94643,082,00002,289,664
6May 5, 2024 08:3049,00264,819,84142,120,0001,002,0002,269,184
7May 5, 2024 08:3049,027114,583,85543,144,10702,260,992
8May 5, 2024 08:3049,04375,367,60241,151,0002,007,0002,289,664
9May 5, 2024 08:3049,065106,909,36843,177,30702,252,800
10May 5, 2024 08:3049,08472,372,78342,190,0001,004,0002,265,088
11May 5, 2024 08:3049,10371,226,76741,202,0002,009,0002,289,664
12May 5, 2024 08:3049,138110,716,47343,241,72702,252,800