Project Euler 4 - Largest Prime Factor
Project Euler 4 - Largest Prime Factor
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.
Official link: https://projecteuler.net/problem=4
Thought Process
Thought Process
2 nested loops
(1) for x from 100 to 999
(2) for y from 100 to 999
Check whether x*y is a palindrome with str(x) == str(x)[::-1]
Interactive Code
Interactive Code
Enter a number (yourinput)
Code will output the largest prime factor of yourinput