python_for_asl/Exercise/exercise-5.3.py
2025-08-06 02:04:35 +08:00

8 lines
No EOL
476 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 哥德巴赫猜想Goldbach's conjecture是数论中存在最久的未解问题之一。这个猜想最早出现在1742年普鲁士数学家克里斯蒂安·哥德巴赫与瑞士数学家莱昂哈德·欧拉的通信中。用现代的数学语言哥德巴赫猜想可以陈述为
# 任一大于2的偶数都可表示成两个素数之和
# 验证1000以内偶数是否满足这一猜想并输出每一个结果例如
# 4 = 2 + 2
# 6 = 3 + 3
# 8 = 3 + 5