do you remember what you intended to do the next day?
Name:
Anonymous2012-04-17 1:38
i solved one of the simpler euler problems after getting stoned, but im pretty sure i did it the nigger way (keep in mind, im a new programmer):
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.
public class Problem2
{
public static void main (String[] args)
{
for(int x = 800; x < 1000; x++)
{
for(int y = 800; y < 1000; y++)
{
int prod = x * y;
String pStr = Integer.toString(prod);