Bash Program to find out prime numbers