(I don't want to give away the game ;)...)
1988 is 3^2 * 8^2, and that's it.
#!/usr/bin/perl use warnings; use strict; for my $born (1800 .. 2005) { my $prod = 1; $prod *= $_ for split //, $born; my $n = sqrt $prod; next unless $n == int $n; printf "%d %d\n", $born, $born + $n if $born + $n > 2005 }
Is there a way to hide the solution? PerlMonks have <readmore> and <spoiler>.
<readmore>
<spoiler>
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
(I don't want to give away the game ;)...)
1988 is 3^2 * 8^2, and that's it.
Is there a way to hide the solution? PerlMonks have
<readmore>
and<spoiler>
.