The Weekly Challenge - 254

Monday, Jan 29, 2024| Tags: Perl, Raku










09. TASK #1: Three Power

10. TASK #2: Reverse Vowels


Welcome to the Week #254 of The Weekly Challenge.

Let us all welcome, Alex Wilson from London to the Team PWC. In the first week itself, he shared solutions in Uiua.

Arne Sommer, master of Raku programming language mostly but occasionaly also shares solutions in Perl. I am a big fan of his blog title. Last night, I was going through the blog post for the Perl Weekly newsletter, I noticed his blog post was not accessible. It never happened before. I am hoping it would be back soon.

Talking about blog post, another member of Team PWC and a regular contributor, Roger Bell_West came up with title You Are the Weakest String. It reminded me a TV show with similar title, The Weakest Link. It brought smile on my face. Thank you for keeping us all entertained.

We all know the history of Raku programming language. I remember early days, we used .p6 extension for script then it was recommended to use .raku instead later. I noticed some of the Raku contributors in the Team PWC still using the old extension .p6. Nothing wrong in using old extension, just wanted to talk about it. We are ok with either, we have no issues at all.

Some of you, from the early days, would remember when the weekly challenge was called Perl Weekly Challenge. Then it changed to The Weekly Challenge to accomodate the sister language Raku. I noticed some member, still calls it Perl Weekly Challenge. It brings back the memory of early days. Keep using it for as long as you want. By the way, the team is still called, Team PWC and I am going to keep it like this forever.

Dave Jacoby blog post is also worth checking where he would share the story of week number. Like in last week post, he mentioned that 253 is the product of two primes, 11 and 23, and thus it’s a semiprime number. It is a Triangle Number also. Too much fun, thank you.

Another member, Packy Anderson comes up musical connection every week in his blog post. In his last blog post, he shared musical inspiration. I only listen to Bollywood Music, so I find it amusing. I learn a lot just reading the blog post.

I would like to thank every member of Team PWC for the support and encouragement. Some of you even take the time to write kind words to me every week. Thank you for the messages. Trust me, it gives me energy when I feel low. Please accept my apolog for not reply to your email. I am always running short of time, sorry.

Last 5 weeks mainstream contribution stats. Thank you Team PWC for your support and encouragements.

  Week      Perl       Raku       Blog   
   249       51       24       23   
   250       56       34       27   
   251       51       33       23   
   252       54       35       23   
   253       53       29       25   

Last 5 weeks guest contribution stats. Thank you each and every guest contributors for your time and efforts.

  Week      Guests       Contributions       Languages   
   249       12       46       14   
   250       16       82       23   
   251       16       53       16   
   252       19       72       22   
   253       17       60       19   

TOP 10 Guest Languages

Do you see your favourite language in the Top 10? If not then why not contribute regularly and make it to the top.

 1. Python     (2159)
 2. Ruby       (646)
 3. Haskell    (627)
 4. Lua        (572)
 5. Rust       (510)
 6. C          (475)
 7. C++        (472)
 8. Go         (321)
 9. BQN        (315)
10. JavaScript (313)

Blogs with Creative Title

1. Weakest Split by Arne Sommer.

2. Split String Soup by Dave Jacoby.

3. Weakest Strings by Jorg Sommrey.

4. not so easy handling multidimensional arrays by Luca Ferrari.

5. The Weakest Split by Packy Anderson.

6. Split the weakest by Peter Campbell Smith.

7. You Are the Weakest String by Roger Bell_West.

8. The weakest split by Simon Green.

GitHub Repository Stats

1. Commits: 36,322 (+109)

2. Pull Requests: 9,466 (+40)

3. Contributors: 242 (+1)

4. Fork: 305 (+1)

5. Stars: 166 (+1)

In the year 2024, we are looking for new sponsor for monthly winner. If anyone interested please get in touch with us at Thanks for your support in advance.


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


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.


Alex Wilson, an expert hacker from London joined 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 check out the guest contributions for the Week #253.

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

Task 1: Three Power

Submitted by: Mohammad S Anwar

You are given a positive integer, $n.

Write a script to return true if the given integer is a power of three otherwise return false.

Example 1

Input: $n = 27
Output: true

27 = 3 ^ 3

Example 2

Input: $n = 0
Output: true

0 = 0 ^ 3

Example 3

Input: $n = 6
Output: false

Task 2: Reverse Vowels

Submitted by: Mohammad S Anwar

You are given a string, $s.

Write a script to reverse all the vowels (a, e, i, o, u) in the given string.

Example 1

Input: $s = "Raku"
Output: "Ruka"

Example 2

Input: $s = "Perl"
Output: "Perl"

Example 3

Input: $s = "Julia"
Output: "Jaliu"

Example 4

Input: $s = "Uiua"
Output: "Auiu"

Last date to submit the solution 23:59 (UK Time) Sunday 4th February 2024.


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

Contact with me