def gcd(a:Int, b:Int) = if(b == 0)a else gcd(b, a%b)
def pow(n:BigInt, m:BigInt) = if(m == 0) 1 else pow(n, m-1) * n
def move(n:Int, a:Int, b:Int ,c:Int):Unit = { if(n == 1) println("%s to %s"format(a ,c))else{ move(n-1, a, c, b); move(1, a, b, c); move(n-1, b, a, c); } }
def isPrime(n:Int) = 2 to Math.sqrt(n.toFloat).toInt forall (n%_ !=0)
def prime(n:Int) = n to 2*n find isPrime get