Basic Prime Number Program Formula