The Weekly Challenge - 176

Monday, Aug 1, 2022| Tags: Perl, Raku

TABLE OF CONTENTS


01. HEADLINES

02. SPONSOR

03. RECAP

04. PERL REVIEW

05. RAKU REVIEW

06. CHART

07. NEW MEMBERS

08. GUESTS

09. TASK #1: Permuted Multiples

10. TASK #2: Reversible Numbers


HEADLINES


Welcome to Week #176 of the weekly challenge.

Today is the first Monday of the month and time to declare our next champion. I declare, Marton Polgar, an expert in Raku as the next champion. As of today, he has contributed 46 solutions in Raku.

Laurent Rosenfeld, thank you for the maximum guest contributions, 20 solutions in 17 different languages.

Adam Russell shared solution to the task Last Sunday in Fortran for the first time with us. Not only that he also wrote a dedicated blog post. Thank you for sharing your experience with us.

Once again, I shared solutions in Perl, Raku, Python, Java and Swift.


Task #1: Last Sunday



Last Sunday


Task #2: Perfect Totient Numbers



Perfect Totient Numbers


TOP 10 Guest Languages


 1. Python  (1035)
 2. Haskell (482)
 3. Ruby    (362)
 4. Lua     (359)
 5. C       (251)
 6. C++     (248)
 7. Go      (207)
 8. Rust    (207)
 9. Node.js (191)
10. Awk     (181)

Last but not the least, I have now placed the order of 40 T-shirts. I will keep you updated as soon as I receive the order.


T-shirt Order



Blogs with Creative Title


1. Sunday Was Perfectly Totient by Adam Russell.

2. Perfect at Last by Arne Sommer.

3. I Know What You Did Last Sunday by Colin Crain.

4. No Touchy, No Totient by Colin Crain.

5. Sunday Math! by Luca Ferrari.

6. Perfect Sunday by Roger Bell_West.

7. Totient numbers on a Sunday by Simon Green.


GitHub Repository Stats


1. Commits: 26,958 (+150)

2. Pull Requests: 6,527 (+39)

3. Contributors: 201

4. Fork: 253

5. Stars: 143



Our solo sponsor Pete Sergeant has been a great support to keep us motivated. We are lucky that he agreed to continue the journey with us in the year 2022. I would like to personally thank Pete and his entire team for their generosity. It would be great if we could add few more to sponsor the prize money so that we could go back and declare weekly champions as we have done in the past. I hope and wish this will become possible in 2022. The amount doesn’t have to be huge. However, it would be nice to show off bunch of supporters. If an organisation comes forward and supports us then that would be the ultimate achievement.


RECAP


Quick recap of The Weekly Challenge - 175 by Mohammad S Anwar.


PERL REVIEW


Please check out Perl solutions review of The Weekly Challenge - 170 by Colin Crain.

If you missed any past reviews then please check out the collection.


RAKU REVIEW


If you missed any past reviews then please check out the collection.


CHART


Please take a look at the charts showing interesting data.

I would like to THANK every member of the team for their valuable suggestions. Please do share your experience with us.


NEW MEMBERS


Please find out How to contribute?, if you have any doubts.

Please try the excellent tool EZPWC created by respected member Saif Ahmed of Team PWC.


GUESTS


Please checkout the guest contributions for the Week #175.

Please find past solutions by respected guests. Please share your creative solutions in other languages.


Task 1: Permuted Multiples

Submitted by: Mohammad S Anwar

Write a script to find the smallest positive integer x such that x, 2x, 3x, 4x, 5x and 6x are permuted multiples of each other.

For example, the integers 125874 and 251748 are permutated multiples of each other as

251784 = 2 x 125874

and also both have the same digits but in different order.

Output

142857

Task 2: Reversible Numbers

Submitted by: Mohammad S Anwar

Write a script to find out all Reversible Numbers below 100.


A number is said to be a reversible if sum of the number and its reverse had only odd digits.


For example,

36 is reversible number as 36 + 63 = 99 i.e. all digits are odd.
17 is not reversible as 17 + 71 = 88, none of the digits are odd.

Output

10, 12, 14, 16, 18, 21, 23, 25, 27,
30, 32, 34, 36, 41, 43, 45, 50, 52,
54, 61, 63, 70, 72, 81, 90


Last date to submit the solution 23:59 (UK Time) Sunday 7th August 2022.


SO WHAT DO YOU THINK ?

If you have any suggestions or ideas then please do share with us.

Contact with me