Driver code
public static void Main ( String [ ] args ) { int N = 131 ; Console . WriteLine ( longest_gap ( N ) ) ; N = 8 ; Console . WriteLine ( longest_gap ( N ) ) ; N = 17 ; Console . WriteLine ( longest_gap ( N ) ) ; N = 33 ; Console . WriteLine ( longest_gap ( N ) ) ; } }