Check if there exists a prime number which gives Y after being repeatedly subtracted from X | Function that returns true if any prime number satisfies the given conditions ; No such prime exists ; Driver code
function isPossible ( x , y ) { if ( ( x - y ) == 1 ) return false ; return true ; } var x = 100 , y = 98 ; if ( isPossible ( x , y ) ) document . write ( " " ) ; else document . write ( " " ) ;