尔冬橙

博客园 首页 新随笔 联系 订阅 管理

2012年5月12日 #

摘要: A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91* 99.Find the largest palindrome made from the product of two 3-digit numbers.2个两位数相乘得到的最大的回文数是9009,如:9009=91*99。找出2个3位数相乘得到的最大的回文数。static void Main(string[] args) { Int64 i 阅读全文
posted @ 2012-05-12 13:53 尔冬橙 阅读(310) 评论(0) 推荐(0) 编辑

摘要: The prime factors of 13195 are 5, 7, 13 and 29.What is the largest prime factor of the number 600851475143 ?每个合数都可以写成几个质数相乘的形式。其中每个质数都是这个合数的因数,叫做这个合数的分解质因数。 分解质因数只针对合数。c#代码:class Program { static void Main(string[] args) { Int64 num = 600851475143; int prm = 2;... 阅读全文
posted @ 2012-05-12 00:09 尔冬橙 阅读(268) 评论(0) 推荐(0) 编辑