Driver code
public static void Main ( String [ ] args ) { int [ ] arr = { 6 , 9 } ; int n = arr . Length ; int p = 3 ; if ( isPossible ( arr , n , p ) ) Console . WriteLine ( " Yes " ) ; else Console . WriteLine ( " No " ) ; } }