Check if A can be converted to B by reducing with a Prime number | Java implementation to find if it is possible to make a equal to b ; Function to find if it is possible to make A equal to B ; Driver Code ; Function Call
class GFG { static boolean isPossible ( int A , int B ) { return ( A - B > 1 ) ; } public static void main ( String [ ] args ) { int A = 10 , B = 4 ; if ( isPossible ( A , B ) ) System . out . print ( " Yes " ) ; else System . out . print ( " No " ) ; } }