public boolean METHOD_1 ( int num ) { if ( num == 1 ) { return true ; } if ( num <= 0 ) { return false ; } while ( ( num % INT_1 ) == 0 ) { num /= INT_1 ; } while ( ( num % INT_2 ) == 0 ) { num /= INT_2 ; } while ( ( num % INT_3 ) == 0 ) { num /= INT_3 ; } return false ; }

public boolean METHOD_1 ( int num ) { if ( num == 1 ) { return true ; } if ( num <= 0 ) { return false ; } while ( ( num % INT_1 ) == 0 ) { num /= INT_1 ; } while ( ( num % INT_2 ) == 0 ) { num /= INT_2 ; } while ( ( num % INT_3 ) == 0 ) { num /= INT_3 ; } return num == 1 ; }
