CINXE.COM
Answers for Project Euler
<!doctype html> <html lang="en"> <head> <title>Answers for Project Euler</title> <meta charset="UTF-8" /> <style> kbd { font-family: "Droid Sans Mono", "Luxi Mono", "Inconsolata", monospace } samp { font-family: "Terminus", "Courier", "Lucida Console", monospace } u { text-decoration: none } .nested { margin-left: 3em; } aside, u { opacity: 0.7 } a[id^="fn-"]:target { background: #ff0 } </style> <link rel="stylesheet" href="//design.perl6.org/perl.css"> <meta name=viewport content="width=device-width, initial-scale=1"> <link rel="icon" href="/favicon.ico" type="image/x-icon" /> <link rel="stylesheet" type="text/css" href="/css/style.css" media="screen" title="default" /> <link rel="stylesheet" type="text/css" href="/css/vim.css" media="screen" title="default" /> </head> <body class="pod"> <div id="___top"></div> <div id="header" class="pretty-box green"> <a href="/" ><img src="/images/camelia-small.png" alt="Camelia" id="logo" > Perl 6 Examples</a > <div class="menu"> <div class="menu-items dark-green"> <a class="menu-item selected darker-green" href="/categories/99-problems.html"> 99 Problems </a> <a class="menu-item selected darker-green" href="/categories/best-of-rosettacode.html"> Rosettacode </a> <a class="menu-item selected darker-green" href="/categories/cookbook.html"> Cookbook </a> <a class="menu-item selected darker-green" href="/categories/euler.html"> Euler </a> <a class="menu-item selected darker-green" href="/categories/games.html"> Games </a> <a class="menu-item selected darker-green" href="/categories/interpreters.html"> Interpreters </a> <a class="menu-item selected darker-green" href="/categories/module-management.html"> Modules </a> <a class="menu-item selected darker-green" href="/categories/other.html"> Other </a> <a class="menu-item selected darker-green" href="/categories/parsers.html"> Grammars </a> <a class="menu-item selected darker-green" href="/categories/perlmonks.html"> Perlmonks </a> <a class="menu-item selected darker-green" href="/categories/rosalind.html"> Rosalind </a> <a class="menu-item selected darker-green" href="/categories/shootout.html"> Shootout </a> <a class="menu-item selected darker-green" href="/categories/tutorial.html"> Tutorial </a> <a class="menu-item selected darker-green" href="/categories/wsg.html"> WSG </a> </div> </div> </div> <div id="content-wrapper"> <div id="content" class="pretty-box yellow"> <h1 class='title'>Answers for Project Euler</h1> <div class="pod-body no-toc"> <table class="pod-table"> <thead><tr> <th>File</th> <th>Title</th> <th>Author</th> </tr></thead> <tbody> <tr> <td><a href="euler/prob001-cspencer.html">prob001-cspencer.pl</a></td> <td>Multiples of 3 and 5</td> <td>cspence</td> </tr> <tr> <td><a href="euler/prob001-eric256.html">prob001-eric256.pl</a></td> <td>Multiples of 3 and 5</td> <td>Eric Hodges</td> </tr> <tr> <td><a href="euler/prob001-grondilu.html">prob001-grondilu.pl</a></td> <td>Multiples of 3 and 5</td> <td>L. Grondin</td> </tr> <tr> <td><a href="euler/prob001-hexmode.html">prob001-hexmode.pl</a></td> <td>Multiples of 3 and 5</td> <td>Mark A. Hershberger</td> </tr> <tr> <td><a href="euler/prob001-unobe.html">prob001-unobe.pl</a></td> <td>Multiples of 3 and 5</td> <td>David Romano</td> </tr> <tr> <td><a href="euler/prob002-eric256.html">prob002-eric256.pl</a></td> <td>Even Fibonacci numbers</td> <td>Eric Hodges</td> </tr> <tr> <td><a href="euler/prob002-gerdr.html">prob002-gerdr.pl</a></td> <td>Even Fibonacci numbers</td> <td>Gerhard R</td> </tr> <tr> <td><a href="euler/prob002-hexmode.html">prob002-hexmode.pl</a></td> <td>Even Fibonacci numbers</td> <td>Mark A. Hershberger</td> </tr> <tr> <td><a href="euler/prob003-eric256.html">prob003-eric256.pl</a></td> <td>Largest prime factor</td> <td>Eric Hodges</td> </tr> <tr> <td><a href="euler/prob003-gerdr.html">prob003-gerdr.pl</a></td> <td>Largest prime factor</td> <td>Gerhard R</td> </tr> <tr> <td><a href="euler/prob003-hexmode.html">prob003-hexmode.pl</a></td> <td>Largest prime factor</td> <td>Mark A. Hershberger</td> </tr> <tr> <td><a href="euler/prob003-lanny.html">prob003-lanny.pl</a></td> <td>Largest prime factor</td> <td>Lanny Ripple</td> </tr> <tr> <td><a href="euler/prob004-unobe.html">prob004-unobe.pl</a></td> <td>Largest palindrome product</td> <td>David Romano</td> </tr> <tr> <td><a href="euler/prob004-xfix.html">prob004-xfix.pl</a></td> <td>Largest palindrome product</td> <td>Konrad Borowski</td> </tr> <tr> <td><a href="euler/prob005-unobe.html">prob005-unobe.pl</a></td> <td>Smallest multiple</td> <td>David Romano</td> </tr> <tr> <td><a href="euler/prob005-xfix.html">prob005-xfix.pl</a></td> <td>Smallest multiple</td> <td>Konrad Borowski</td> </tr> <tr> <td><a href="euler/prob006-polettix.html">prob006-polettix.pl</a></td> <td>Sum square difference</td> <td>polettix</td> </tr> <tr> <td><a href="euler/prob007-polettix.html">prob007-polettix.pl</a></td> <td>10001st prime</td> <td>polettix</td> </tr> <tr> <td><a href="euler/prob008-duff.html">prob008-duff.pl</a></td> <td>Largest product in a series</td> <td>Jonathan Scott Duff</td> </tr> <tr> <td><a href="euler/prob008-duff2.html">prob008-duff2.pl</a></td> <td>Largest product in a series</td> <td>Jonathan Scott Duff</td> </tr> <tr> <td><a href="euler/prob009-gerdr-feeds.html">prob009-gerdr-feeds.pl</a></td> <td>Special Pythagorean triplet</td> <td>Gerhard R</td> </tr> <tr> <td><a href="euler/prob009-gerdr.html">prob009-gerdr.pl</a></td> <td>Special Pythagorean triplet</td> <td>Gerhard R</td> </tr> <tr> <td><a href="euler/prob009-polettix.html">prob009-polettix.pl</a></td> <td>Special Pythagorean triplet</td> <td>Flavio Poletti</td> </tr> <tr> <td><a href="euler/prob010-polettix.html">prob010-polettix.pl</a></td> <td>Summation of primes</td> <td>polettix</td> </tr> <tr> <td><a href="euler/prob011-moritz.html">prob011-moritz.pl</a></td> <td>Largest product in a grid</td> <td>Moritz Lenz</td> </tr> <tr> <td><a href="euler/prob012-polettix.html">prob012-polettix.pl</a></td> <td>Highly divisible triangular number</td> <td>polettix</td> </tr> <tr> <td><a href="euler/prob013-grondilu.html">prob013-grondilu.pl</a></td> <td>Large sum</td> <td>L. Grondin</td> </tr> <tr> <td><a href="euler/prob014-felher.html">prob014-felher.pl</a></td> <td>Longest Collatz sequence</td> <td>Felix Herrmann</td> </tr> <tr> <td><a href="euler/prob015-felher.html">prob015-felher.pl</a></td> <td>Lattice paths</td> <td>Felix Herrmann</td> </tr> <tr> <td><a href="euler/prob016-grondilu.html">prob016-grondilu.pl</a></td> <td>Power digit sum</td> <td>L. Grondin</td> </tr> <tr> <td><a href="euler/prob017-duff.html">prob017-duff.pl</a></td> <td>Number letter counts</td> <td>Jonathan Scott Duff</td> </tr> <tr> <td><a href="euler/prob018-felher.html">prob018-felher.pl</a></td> <td>Maximum path sum I</td> <td>Felix Herrmann</td> </tr> <tr> <td><a href="euler/prob019-grondilu.html">prob019-grondilu.pl</a></td> <td>Counting Sundays</td> <td>L. Grondin</td> </tr> <tr> <td><a href="euler/prob020-grondilu.html">prob020-grondilu.pl</a></td> <td>Factorial digit sum</td> <td>L. Grondin</td> </tr> <tr> <td><a href="euler/prob021-gerdr.html">prob021-gerdr.pl</a></td> <td>Amicable numbers</td> <td>Gerhard R</td> </tr> <tr> <td><a href="euler/prob022-grondilu.html">prob022-grondilu.pl</a></td> <td>Names scores</td> <td>L. Grondin</td> </tr> <tr> <td><a href="euler/prob023-shlomif.html">prob023-shlomif.pl</a></td> <td>Non-abundant sums</td> <td>Shlomi Fish</td> </tr> <tr> <td><a href="euler/prob024-moritz.html">prob024-moritz.pl</a></td> <td>Lexicographic permutations</td> <td>Moritz Lenz</td> </tr> <tr> <td><a href="euler/prob025-polettix.html">prob025-polettix.pl</a></td> <td>1000-digit Fibonacci number</td> <td>Flavio Poletti</td> </tr> <tr> <td><a href="euler/prob026-shlomif.html">prob026-shlomif.pl</a></td> <td>Reciprocal cycles</td> <td>Shlomi Fish</td> </tr> <tr> <td><a href="euler/prob027-shlomif.html">prob027-shlomif.pl</a></td> <td>Quadratic primes</td> <td>Shlomi Fish</td> </tr> <tr> <td><a href="euler/prob028-shlomif.html">prob028-shlomif.pl</a></td> <td>Number spiral diagonals</td> <td>Shlomi Fish</td> </tr> <tr> <td><a href="euler/prob029-gerdr.html">prob029-gerdr.pl</a></td> <td>Distinct powers</td> <td>Gerhard R</td> </tr> <tr> <td><a href="euler/prob029-polettix.html">prob029-polettix.pl</a></td> <td>Distinct powers</td> <td>Flavio Poletti</td> </tr> <tr> <td><a href="euler/prob030-andreoss.html">prob030-andreoss.pl</a></td> <td>Digit fifth powers</td> <td>Andrei Osipov</td> </tr> <tr> <td><a href="euler/prob031-shlomif.html">prob031-shlomif.pl</a></td> <td>Coin sums</td> <td>Shlomi Fish</td> </tr> <tr> <td><a href="euler/prob032-andreoss.html">prob032-andreoss.pl</a></td> <td>Pandigital products</td> <td>Andrei Osipov</td> </tr> <tr> <td><a href="euler/prob033-andreoss.html">prob033-andreoss.pl</a></td> <td>Digit cancelling fractions</td> <td>Andrei Osipov</td> </tr> <tr> <td><a href="euler/prob034-quinny.html">prob034-quinny.pl</a></td> <td>Digit factorials</td> <td>Quinn Perfetto</td> </tr> <tr> <td><a href="euler/prob036-xenu.html">prob036-xenu.pl</a></td> <td>Double-base palindromes</td> <td>xenu</td> </tr> <tr> <td><a href="euler/prob038-andreoss.html">prob038-andreoss.pl</a></td> <td>Pandigital multiples</td> <td>Andrei Osipov</td> </tr> <tr> <td><a href="euler/prob039-quinny.html">prob039-quinny.pl</a></td> <td>Integer right triangles</td> <td>Quinn Perfetto</td> </tr> <tr> <td><a href="euler/prob042-shlomif.html">prob042-shlomif.p6</a></td> <td>Coded triangle numbers</td> <td>Shlomi Fish</td> </tr> <tr> <td><a href="euler/prob047-gerdr.html">prob047-gerdr.pl</a></td> <td>Distinct primes factors</td> <td>Gerhard R</td> </tr> <tr> <td><a href="euler/prob052-duff.html">prob052-duff.pl</a></td> <td>Permuted multiples</td> <td>Jonathan Scott Duff</td> </tr> <tr> <td><a href="euler/prob053-duff.html">prob053-duff.pl</a></td> <td>Combinatoric selections</td> <td>Jonathan Scott Duff</td> </tr> <tr> <td><a href="euler/prob053-gerdr.html">prob053-gerdr.pl</a></td> <td>Combinatoric selections</td> <td>Gerhard R</td> </tr> <tr> <td><a href="euler/prob054-andreoss.html">prob054-andreoss.pl</a></td> <td>Poker hands</td> <td>Andrei Osipov</td> </tr> <tr> <td><a href="euler/prob055-shlomif.html">prob055-shlomif.p6</a></td> <td>Lychrel numbers</td> <td>Shlomi Fish</td> </tr> <tr> <td><a href="euler/prob056-shlomif.html">prob056-shlomif.p6</a></td> <td>prob056-shlomif.p6</td> <td></td> </tr> <tr> <td><a href="euler/prob059-andreoss.html">prob059-andreoss.pl</a></td> <td>XOR decryption</td> <td>Andrei Osipov</td> </tr> <tr> <td><a href="euler/prob060-andreoss.html">prob060-andreoss.pl</a></td> <td>Prime pair sets </td> <td>Andrei Osipov</td> </tr> <tr> <td><a href="euler/prob063-moritz.html">prob063-moritz.pl</a></td> <td>Powerful digit counts</td> <td>Moritz Lenz</td> </tr> <tr> <td><a href="euler/prob063-polettix.html">prob063-polettix.pl</a></td> <td>Powerful digit counts</td> <td>polettix</td> </tr> <tr> <td><a href="euler/prob065-andreoss.html">prob065-andreoss.pl</a></td> <td>Convergents of e</td> <td>Andrei Osipov</td> </tr> <tr> <td><a href="euler/prob065-grondilu.html">prob065-grondilu.pl</a></td> <td>prob065-grondilu.pl</td> <td></td> </tr> <tr> <td><a href="euler/prob066-andreoss.html">prob066-andreoss.pl</a></td> <td>Diophantine equation</td> <td>Andrei Osipov</td> </tr> <tr> <td><a href="euler/prob067-felher.html">prob067-felher.pl</a></td> <td>Maximum path sum II</td> <td>Felix Herrmann</td> </tr> <tr> <td><a href="euler/prob080-andreoss.html">prob080-andreoss.pl</a></td> <td>Square root digital expansion</td> <td>Andrei Osipov</td> </tr> <tr> <td><a href="euler/prob081-moritz.html">prob081-moritz.pl</a></td> <td>Path sum: two ways</td> <td>Moritz Lenz</td> </tr> <tr> <td><a href="euler/prob089-andreoss.html">prob089-andreoss.pl</a></td> <td>Roman numerals</td> <td>Andrei Osipov</td> </tr> <tr> <td><a href="euler/prob092-moritz.html">prob092-moritz.pl</a></td> <td>Square digit chains</td> <td>Moritz Lenz</td> </tr> <tr> <td><a href="euler/prob097-andreoss.html">prob097-andreoss.pl</a></td> <td>Large non-Mersenne prime</td> <td>Andrei Osipov</td> </tr> <tr> <td><a href="euler/prob098-andreoss.html">prob098-andreoss.pl</a></td> <td>Anagramic squares</td> <td>Andrei Osipov</td> </tr> <tr> <td><a href="euler/prob099-andreoss.html">prob099-andreoss.pl</a></td> <td>Largest exponential</td> <td>Andrei Osipov</td> </tr> </tbody> </table> </div> </div> </div> <div id="footer-wrapper"> <div id="footer" class="pretty-box yellow"> <p> Generated on 2021-10-23T14:59:47.565973+02:00 from the sources at <a href="https://github.com/raku/examples">raku/examples on github</a>. This is a work in progress to collect examples of Raku. Contributions welcome! </p> <p> These documents are provided under the terms of the Artistic License 2.0. The Camelia image is copyright 2009 by Larry Wall. </p> </div> <!-- footer --> </div> <!-- footer-wrapper --> </body> </html>