Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^2: How to change these small one-liners into Perl6 code?

by ABCXYZ (Novice)
on Dec 23, 2012 at 19:18 UTC ( #1010114=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    If we list all the natural numbers below 10 that are multiples of 3 or
    + 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
    Find the sum of all the multiples of 3 or 5 below 1000.
    (I generalized this to: 
       below 10**$n for code #1 and #2, 
    or below $N for code #3)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010114]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2015-12-01 15:03 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (12 votes), past polls