Function to print three prime numbers which sum up to the number N
static void findNums ( int num ) { boolean ans = false ; int first = - 1 , second = - 1 , third = - 1 ; for ( int i = 0 ; i < num ; i ++ ) {