The Weekly Challenge - 164

Monday, May 9, 2022| Tags: Perl, Raku










09. TASK #1: Prime Palindrome

10. TASK #2: Happy Numbers


Welcome to the Week #164 with new member Luiz Felipe from Brazil. Thank you, Luiz for your first contributions in Perl.

Thank you, Ryan Thompson for the contributions in Perl and Raku.

I should also thank, Julien Fiegehenn for the contributions in Perl.

After a long time, I managed to submit the solutions to both tasks in Perl.

Guest contributions picked up once again as we had 47 contributions in 18 different languages. Thank you all guest contributors.

I would like to talk about Perl Reviews by our in-house expert, Colin Crain. I am not sure about other team members, but every time I contribute, I always look forward to what Colin has to say about my contributions. It is not that I am lucky all the time but I do get mention in the review once in a while. It makes me very happy every time I do receive positive review.

Colin Crain shared some interesting stats about recently done Perl Reviews.

Perl Review #157

 Words: 5512
 Lines: 753

Perl Review #158

 Words: 5387
 Lines: 777

Perl Review #159

 Words: 5791
 Lines: 733

Overall, 93 challenges reviewed, 182 tasks completed, 2727 individual code review performed with 17776 unique words used.

Talking about stats, I would also like to share some stats with you.

Week #160

 Perl/Raku Contributors: 36 (119 contributions)
 Guest Contributors: 17 (50 contributions in 20 languages)

Week #161

 Perl/Raku Contributors: 37 (100 contributions)
 Guest Contributors: 11 (34 contributions in 15 languages)

Week #162

 Perl/Raku Contributors: 35 (92 contributions)
 Guest Contributors: 10 (29 contributions in 15 languages)

Week #163

 Perl/Raku Contributors: 37 (114 contributions)
 Guest Contributors: 12 (47 contributions in 18 languages)

Last but not the least, I would like to request Matthew Neleigh to share his email contact so that prize money can be handover.

Good luck with the weekly challenge. Enjoy !!!

Blogs with Creative Title

1. Sum and Sum Again by Arne Sommer.

2. That’s Some Operator You Got There by Colin Crain.

3. And a Little Something More… by Colin Crain.

4. Sum(mation)s by Dave Jacoby.

5. the infinite loop by Luca Ferrari.

6. Lot of ands and a strange grid by Peter Campbell Smith.

7. Sums and Sums by Roger Bell_West.

8. A tail of two sums by Ryan Thompson.

GitHub Repository Stats

1. Commits: 25,079 (+165)

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

3. Contributors: 192 (+1)

4. Fork: 247

5. Stars: 130 (+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 - 163 by Mohammad S Anwar.


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

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.


Luiz Felipe, Perl hacker from Brazil joined the Team PWC.

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 #163.

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

Task 1: Prime Palindrome

Submitted by: Mohammad S Anwar

Write a script to find all prime numbers less than 1000, which are also palindromes in base 10. Palindromic numbers are numbers whose digits are the same in reverse. For example, 313 is a palindromic prime, but 337 is not, even though 733 (337 reversed) is also prime.

Task 2: Happy Numbers

Submitted by: Robert DiCicco

Write a script to find the first 8 Happy Numbers in base 10. For more information, please check out Wikipedia.

Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 (where it will stay), or it loops endlessly in a cycle which does not include 1.

Those numbers for which this process end in 1 are happy numbers, while those numbers that do not end in 1 are unhappy numbers.


19 is Happy Number in base 10, as shown:

19 => 1^2 + 9^2
   => 1   + 81
   => 82 => 8^2 + 2^2
         => 64  + 4
         => 68 => 6^2 + 8^2
               => 36  + 64
               => 100 => 1^2 + 0^2 + 0^2
                      => 1 + 0 + 0
                      => 1

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


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

Contact with me