Given a positive integer n write some code to take its prime factorization and replace all of its factors of 2 with 3.
For example
12 = 2 * 2 * 3 -> 3 * 3 * 3 = 27 This is code-golf so the goal is to minimize the byte count of your answer.
Test cases
1 -> 1 2 -> 3 3 -> 3 4 -> 9 5 -> 5 6 -> 9 7 -> 7 8 -> 27 9 -> 9 10 -> 15 11 -> 11 12 -> 27 13 -> 13 14 -> 21 15 -> 15 16 -> 81 17 -> 17 18 -> 27 19 -> 19 20 -> 45 21 -> 21 22 -> 33 23 -> 23 24 -> 81 25 -> 25 26 -> 39 27 -> 27 28 -> 63 29 -> 29