recreating from memory a prime number script I saw a few weeks back...