new prime number check files using sqrt and caching