Fermat's Easy Problem
来源:互联网 发布:bootp端口号 编辑:程序博客网 时间:2024/05/21 17:27
Description
In number theory, Pierre de Fermat's theorem on sums of two squares states that an odd prime p .Fermat usually did not prove his claims and he did not provide a proof of this statement. The first proof was found by Euler after much effort and is based on infinite descent. He announced it in a letter to Goldbach on April 12, 1749. Give you a number n,if n is a prime and n mod 4 =1,output "Yes" else "No"
Input
Input a number n.(Multiple case)
Output
"Yes" or "No"
Sample Input
23571113
Sample Output
NoNoYesNoNoYes
代码
0 0
- Fermat's Easy Problem
- BOJ 319 3230391's easy problem
- Fermat’s Chirstmas Theorem
- Fermat’s Chirstmas Theorem
- Fermat’s Chirstmas Theorem
- Fermat’s Chirstmas Theorem
- poj3511--Fermat's Christmas Theorem
- easy problem
- UVa Problem 106 - Fermat vs. Pythagoras
- Test Prime Using Fermat's Little Theorem
- Fermat's little theorem(费马小定理)
- Fermat’s Chirstmas Theorem(素数筛)
- POj 3511 Fermat’s Chirstmas Theorem
- 素数判断----E -Fermat’s Chirstmas Theorem
- SDUT Fermat’s Chirstmas Theorem(素数筛)
- POJ 3511 Fermat's Christmas Theorem 可能会
- Joking with Fermat's Last Theorem UVA
- 【数论-异或】nyoj-备用 2345: A problem that's so easy
- 数据结构面试题(含答案)
- ubuntu通过键盘移动窗口
- Thinkpad 屏幕 调整颜色方法
- word中文字与公式混排,如何使其对齐?
- VS2010下编译OpenCV2.4.6静态库
- Fermat's Easy Problem
- 关于支付
- 如何查找dev目录下磁盘设备的iscsi来源
- Fraction
- 推荐一些编程学习网站
- Zoom An Image With Different Interpolation Types
- 三、Qt入门基础知识
- lucene---加速检索的建议
- ext direct spring Store Read Method