Error when prime > max