Perl Weekly Challenge - 022

Sunday, Aug 18, 2019| Tags: Perl, Raku


Let me announce the winner of Perl Weekly Challenge - 021 and the name is Ruben Westerberg. Many congratulations Ruben, you should soon hear from Perl Careers about your reward. Please do let us know how you feel about it. For rest of the participants, I would say Good Luck for next time. Keep sending in your solutions and share your knowledge with each other.


Here is the recap of last week challenge.


Please checkout the Perl Weekly Challenge - 020 review by Kian-Meng Ang.


Finally, at the end of Week 21, we now have a Perl6 Reviewer. Thanks to Laurent Rosenfeld for the favour. Please checkout the Perl6 review of Perl Weekly Challenge - 020.

  1. Split Strings on Character Change

  2. Amicable Numbers


Please take a look at the charts showing interesting data.

I would like to thank everyone for their valuable suggestions. Please do share your experience with us. Good luck for the weekly challenge and enjoy.


  1. Hauke Dämpfling, an experienced Perl hacker.

  2. Peter Scott, an experienced Perl hacker.

Check out current team members.


We welcome contributions in other languages. So far we have had one guest submitting solutions in Python in the past. Last week, we didn’t receive any contributions from guest.

Task #1

Write a script to print first 10 Sexy Prime Pairs. Sexy primes are prime numbers that differ from each other by 6. For example, the numbers 5 and 11 are both sexy primes, because 11 - 5 = 6. The term “sexy prime” is a pun stemming from the Latin word for six: sex. For more information, please checkout wiki page.

Task #2

Write a script to implement Lempel–Ziv–Welch (LZW) compression algorithm. The script should have method to encode/decode algorithm. The wiki page explains the compression algorithm very nicely.

I must confess, it took me many years to get my head around the compression algorithm, I finally understood while doing research for the task. So thanks to Perl Weekly Challenge, I can proudly say that now I understand the compression algorithm. I hope you will enjoy this task as much as I did.

Task #3

Write a script to use Amazon Pinpoint API. For more information about the API, please visit page. The API task is optional but we would love to see your solution.

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


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

Contact with me