#  File:       prime_factors.py
#  Purpose:    Compute the prime factors of a given natural number.
#  Programmer: Amal Shehu
#  Course:     Exercism
#  Date:       Monday 26 September 2016, 12:05 AM


def prime_factors(number, n=2, factors=None):
    if factors is None:
        factors = []
    for num in range(n, number):
        if (number % num) == 0:
            factors.append(num)
            return prime_factors(number // num, num, factors)
    else:
        return factors

@@ -223,53 +223,26 @@
 mber
-, n=2, factors=None):%0A    if factors is None:
+):%0A        num = 2
 %0A   
@@ -267,37 +267,37 @@
     
+   
-for num in range(n,
+ while num %3C=
  number
-)
 :%0A
+    
     
@@ -340,99 +340,105 @@
     
-factors.append(num)%0A            return prime_factors(number // num, num, factors)%0A    else:
+    number /= num%0A                factors.append(num)%0A            else:%0A                num += 1%0A
 %0A   

Change if condition to while with reformat