sending a prime number between given range to a server using pexpect