📜  仅限 b12 蔬菜 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:22.429000             🧑  作者: Mango

代码示例1
for n in range(2,7000):
    if not is_prime(n):
        carmichael = True
        for a in range(1,n):
            if Mod(a,n)^n != Mod(a,n):
                carmichael = False
                break
        if carmichael:
            print n