private int METHOD_1 ( int n ) { int result = 0 ; while ( ( n % INT_1 ) == 0 ) { result ++ ; n /= INT_1 ; } if ( n != 1 ) { return - 1 ; } else { return result ; } }

private int METHOD_1 ( int n ) { if ( n <= 0 ) { return - 1 ; } int result = 0 ; while ( ( n % INT_1 ) == 0 ) { result ++ ; n /= INT_1 ; } if ( n != 1 ) { return - 1 ; } else { return result ; } }
