Stores the power to which primefactor i is raised
count = 0 NEW_LINE while ( K_temp % i == 0 ) : NEW_LINE INDENT K_temp //= i NEW_LINE count += 1 NEW_LINE DEDENT if ( count > 0 ) : NEW_LINE INDENT primefactors . append ( [ count , i ] ) NEW_LINE DEDENT i += 1 NEW_LINE if ( K_temp != 1 ) : NEW_LINE primefactors . append ( [ 1 , K_temp ] ) NEW_LINE