The Weekly Challenge - 159

Monday, Apr 4, 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: Farey Sequence

10. TASK #2: Moebius Number


HEADLINES


Welcome to the first weekly challenge of the holy month of Ramadan.

Also today is the first Monday of the month and time to announce the next champion. With great pleasure I announce, Eric Cheung, as the Champion of the month. Eric is currently ranked #11 in the Guest Leaderboard. As of today he has contributed 78 solutions. The breakdown of his contributions are 63 Excel VBA and 15 Python solutions.

Last few days have been really tough as I am having really bad cold. Somehow I managed to contribute to the last week challenge. I hope to continue as long as humanly possible.

After a gap of 3 weeks, we breached the target once again. Last time we reached the target (106) was in the Week 154. This week we had 105 contributions, thanks to each and every contributors.

Enjoy !!!


Blogs with Creative Title


1. Cuban Addition, Primarily with Raku by Arne Sommer.

2. Add Another Prime to the Pile by Colin Crain.

3. Cubans In Their Prime by Colin Crain.

4. In Our Primes by Dave Jacoby.

5. to be prime or not to be prime by Luca Ferarri.

6. All about primes by Peter Campbell Smith.

7. Prime Cuban Additives by Roger Bell_West.

8. It’s a primathon! by Simon Green.


GitHub Repository Stats


1. Commits: 24,259 (+145)

2. Pull Requests: 5,871 (+36)

3. Contributors: 188

4. Fork: 245 (+1)

5. Stars: 125 (+1)



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 2021. 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 2021. 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 - 158 by Mohammad S Anwar.


PERL REVIEW


Please check out Perl solutions review of the The Weekly Challenge - 154 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 #158.

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


TASK #1 › Farey Sequence

Submitted by: Mohammad S Anwar

You are given a positive number, $n.

Write a script to compute Farey Sequence of the order $n.

Example 1:

Input: $n = 5
Output: 0/1, 1/5, 1/4, 1/3, 2/5, 1/2, 3/5, 2/3, 3/4, 4/5, 1/1.

Example 2:

Input: $n = 7
Output: 0/1, 1/7, 1/6, 1/5, 1/4, 2/7, 1/3, 2/5, 3/7, 1/2, 4/7, 3/5, 2/3, 5/7, 3/4, 4/5, 5/6, 6/7, 1/1.

Example 3:

Input: $n = 4
Output: 0/1, 1/4, 1/3, 1/2, 2/3, 3/4, 1/1.

TASK #2 › Moebius Number

Submitted by: Mohammad S Anwar

You are given a positive number $n.

Write a script to generate the Moebius Number for the given number. Please refer to wikipedia page for more informations.

Example 1:

Input: $n = 5
Output: -1

Example 2:

Input: $n = 10
Output: 1

Example 3:

Input: $n = 20
Output: 0


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


SO WHAT DO YOU THINK ?

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

Contact with me