I am having an interesting problem with Python. My task is to calculate all prime factors of a given number. This is my code:
import math def func(number):