No Programming, No Life

プログラミング関連の話題や雑記

Project Euler

Project Euler Problem 3 を解いてみた

問題 The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? Problem 3 - Project Euler 13195 の素因数は 5、7、13、29 である。 600851475143 の素因数のうち最大のものを求めよ。 Problem 3 -…

Project Euler Problem 4 を解いてみた

問題 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. Problem 4 - Project Euler 3桁…

Project Euler Problem 22 を解いてみた

問題 Using names.txt (right click and 'Save Link/Target As...'), a 46K text file containing over five-thousand first names, begin by sorting it into alphabetical order. Then working out the alphabetical value for each name, multiply this v…