【Github】(https://github.com/jtyoui/Jtyoui/tree/master/jtyoui/statistics/maths)
pip install jtyoui
from jtyoui.statistics.maths import is_prime
if __name__ == '__main__':
print(is_prime(915453))
from jtyoui.statistics.maths import primes
if __name__ == '__main__':
print(len(list(primes(1_0000_0000)))) # 时间5.5541136264801025秒