Hi,

I need two functions one that checks if the inputed number is a prime

number and second one that splits the given number in to prafactors.

I have the first function done but the second one is a bit annoying.

The function has to take the given number and split it and save the results

in a list. Needs to split the prime number on factors and append that to an

empty list. Example:

252=2(on 2) * 3(on 2) * 7(on 1) - Because 2*2 * 3*3 * 7*1 = 256

And then i have to print this list in the following way:

[(2, 2), (3, 2), (7, 1)]