This getprime[n] function will find the nth prime number.
var a:=getprime[10]; var y; y:=getprime[a];