Function to find permutation ( p ) of first N natural numbers such that there are exactly K elements of permutation such that GCD ( p [ i ] , i ) > 1
void Permutation ( int n , int k ) { int p [ n + 1 ] ;