Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010114]
help
Chatterbox?
and all is calm...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2017-11-20 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (284 votes). Check out past polls.

    Notices?