Created by

on August 27, 2021 `KWE5K6XLZULD6MDDVM7X2YFMYMKL76L4MHRAUXZ6EWL5YAJVBKUQC`

main

###### Replacement in rust/nth-prime/src/lib.rs at line 6 [3.452]

###### Replacement in rust/nth-prime/src/lib.rs at line 8 [3.452]

`// List size approximation is insufficient for values of n = 0, 1, 2, 3, 4, 5, 6, 9 and 11, with the greatest difference of 4 when n = 2, requiring this correction.`

`let corrected_n = if n > 11 { n as f64 } else { (n + 4) as f64 };`

`// List size approximation is insufficient for values of n = 0, 1, 2, 3, 4, 5, 6, 9, 11 and 12, requiring this correction.`

`let corrected_n = (n + match n {`

`0 | 11 => 3,`

`1 | 5 | 6 | 9 => 4,`

`2 | 4 => 6,`

`3 => 5,`

`7 | 8 | 12 => 1,`

`_ => 0,`

`}) as f64;`

###### Replacement in rust/nth-prime/src/lib.rs at line 18 [3.452]