The Weekly Challenge - 172

Monday, Jul 4, 2022| Tags: Perl, Raku










09. TASK #1: Prime Partition

10. TASK #2: Five-number Summary


Welcome to Week #172 of the weekly challenge.

Today is the first Monday of the month and time to announce the champion. Proud to declare PokGoPun as our next champion. He is relatively new to the Team PWC. In such a short time, he has reached rank #12 in Guest Leaders. His contributing languages are Perl and Go.

We have done interview with the last champion, Robert Ransbottom, please checkout and find out more about him in the interview.

Recently brian d foy contacted me and offered signed hard copy of his latest Perl book i.e. Learning Perl, 8th edition. I am given free hand to nominate the member to receive the FREE book and delivered too at no extra cost. I am happy to nominate, Colin Crain, our most popular and famous Perl Reviewer. I will share the details with brian d foy in the next few days. Next week, we are going to have another nomination.

Thanks to the contributions of Team PWC, we have reached the milestone of 100+ contributions 3 weeks in a row. Even the guest contributions also peaked after a long time with 75 contributions in 25 languages by 15 guests.

Welcome back, Bartosz Jarzyna and thanks for sharing solutions in Perl, Raku, C and Pascal.

Welcome back, Humberto Massa after a short break. Thank you for contribtions in Raku.

Welcome back, Kjetil Skotheim and thanks for sharing solutions in Perl.

Even, I got the time to do both, Task #1 and Task #2 this week in Perl, usually I have only time for Task #1.

Last but not the least, we have received the confirmation from champions contacted recently. Altogether, we now have confirmations from 38 champions. One more champion is going to be added to the list i.e. PokGoPun. As soon as I get the confirmation, I will get the T-shirt printing ordered. You can checkout the latest update in the blog post.

Good luck for the next challenge.

Blogs with Creative Title

1. Abundantly First Class by Arne Sommer.

2. Let Me Make This Abundantly Clear by Colin Crain.

3. numbers and references by Luca Ferrari.

4. Abundantly odd and … Oh dear! by Peter Campbell Smith.

5. First-Class Abundance by Roger Bell_West.

GitHub Repository Stats

1. Commits: 26,351 (+155)

2. Pull Requests: 6,379 (+40)

3. Contributors: 199

4. Fork: 253 (+1)

5. Stars: 141 (+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 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.


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


Please check out Perl solutions review of The Weekly Challenge - 164 by Ryan Thompson.

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


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


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.


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.


Please checkout the guest contributions for the Week #171.

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

Task 1: Prime Partition

Submitted by: Mohammad S Anwar

You are given two positive integers, $m and $n.

Write a script to find out the Prime Partition of the given number. No duplicates allowed.

For example,

Input: $m = 18, $n = 2
Output: 5, 13 or 7, 11

Input: $m = 19, $n = 3
Output: 3, 5, 11

Task 2: Five-number Summary

Submitted by: Mohammad S Anwar

You are given an array of integers.

Write a script to compute the five-number summary of the given set of integers.

You can find the definition and example in the wikipedia page.

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


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

Contact with me