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 listFeb 18, 2024 05:19Huy Duc LeHuy Duc LeScore: 59,759Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 18, 2024 05:1956,454115,006,26249,679,22802,252,800
2Feb 18, 2024 05:1956,514115,458,22049,732,58802,269,184
3Feb 18, 2024 05:1956,547109,359,58649,761,61002,260,992
4Feb 18, 2024 05:1959,69276,593,15251,519,0001,010,0002,289,664
5Feb 18, 2024 05:1959,72374,997,31251,546,0001,010,0002,273,280
6Feb 18, 2024 05:1959,74275,420,69752,573,00002,289,664
7Feb 18, 2024 05:1959,75976,143,32952,588,00002,289,664
8Feb 18, 2024 05:1959,84173,375,97552,660,00002,519,040
9Feb 18, 2024 05:1959,85985,192,12751,663,0001,013,0002,289,664
10Feb 18, 2024 05:1959,86979,764,50951,672,0001,013,0002,265,088
11Feb 18, 2024 05:1960,07482,747,73350,871,0001,994,0002,281,472
12Feb 18, 2024 05:1960,19385,315,91050,972,0001,998,0002,289,664