Yak Shaving

just me

Problem 4

without comments

#!/usr/bin/python

winners = []

for a in range (100, 999):
    for b in range (100, 999):
        test = str(a * b)
        if test == test[::-1]:
            winners.append(int(test))

print max(winners)

Written by channam

November 6th, 2008 at 12:49 am

Posted in code,project euler,python,random

Tagged with ,

Leave a Reply