diff options
| author | drclaw1394 <drclaw@mac.com> | 2019-06-10 20:56:34 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-10 20:56:34 +1000 |
| commit | 5c1663e3f7a4bf8767cd62c4e7db03186561edb2 (patch) | |
| tree | 2a0fa3af0f3b0fd5a71a9ae67984f4fa2adb8aa1 /challenge-008/duncan-c-white/README | |
| parent | b577c5e4a0a63be26d335cb74580c1ae721105c0 (diff) | |
| parent | e874646e75a09fbe9c9f248e2071bc4182973b7f (diff) | |
| download | perlweeklychallenge-club-5c1663e3f7a4bf8767cd62c4e7db03186561edb2.tar.gz perlweeklychallenge-club-5c1663e3f7a4bf8767cd62c4e7db03186561edb2.tar.bz2 perlweeklychallenge-club-5c1663e3f7a4bf8767cd62c4e7db03186561edb2.zip | |
Merge pull request #11 from manwar/master
update to week 12
Diffstat (limited to 'challenge-008/duncan-c-white/README')
| -rw-r--r-- | challenge-008/duncan-c-white/README | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/challenge-008/duncan-c-white/README b/challenge-008/duncan-c-white/README index fb3a863c80..7adef4a715 100644 --- a/challenge-008/duncan-c-white/README +++ b/challenge-008/duncan-c-white/README @@ -1,14 +1,16 @@ -Challenge 1: "Create a script which takes a list of numbers from -command line and print the same in the compact form. For example, if -you pass 1,2,3,4,9,10,14,15,16 then it should print the compact form -like 1-4,9,10,14-16.." +Challenge 1: "Write a script that computes the first five perfect +numbers. A perfect number is an integer that is the sum of its positive +proper divisors (all divisors except itself). Please check Wiki for +more information. First 4 are 6, 28, 496 and 8128" -Quite simple and dull problem. But ok, let's have a go. +My notes: Cute little problem, let's have a go. -Challenge 2: "Create a script to calculate Ramanujan's constant with at -least 32 digits of precision." -Never heard of this constant, seems to be e^(pi*sqrt(163)), which is -"very nearly an integer", I don't particularly care about abtruse mathematical -formulae. But ok, Perl's built in module biggrat will let you do this anyway, -specifying accuracy 32; see ch-2.sh for the oneliner. +Challenge 2: "Write a function, center, whose argument is a list of +strings, which will be lines of text. The function should insert spaces +at the beginning of the lines of text so that if they were printed, +the text would be centered, and return the modified lines." + +My notes: + +Another well-specified problem:-) |
