The Weekly Challenge - 170

Monday, Jun 20, 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: Primorial Numbers

10. TASK #2: Kronecker Product


HEADLINES


Welcome to a yet another fun Week #170.

We have new member Dario Mazzeo, an experienced Perl hacker, joining the Team PWC.

Congratulation everyone for reaching the target of 100+ contributions once again.

Even the guest contributions is becoming popular among the team members.

Once again, I couldn’t participate in the weekly challenge. Hay Fever has troubled me a lot. Feeling little better today. I am planning to get back to YouTube live coding. Please wish me luck.

Not sure, if you know this, we have father-son duo in the team and they are Robert DiCicco and Michael DiCicco.

Keep sharing knowledge and spread the word among friends.

Good luck for the next challenge.


Blogs with Creative Title


1. Brilliantly Discover Achilles’ Imperfection by Adam Russell.

2. An Abundance of Numbers by Arne Sommer.

3. Number Theoretic Quiz by Cheok-Yin Fung.

4. Twenty-Two Brilliant Numbers by Colin Crain.

5. A Tendon-ous Task by Colin Crain.

6. primes and more primes! by Luca Ferrari.

7. Brilliant and Achilles by Peter Campbell Smith.

8. The Brilliance of Achilles by Roger Bell_West.

9, It’s all about the numbers by Simon Green.


GitHub Repository Stats


1. Commits: 26,020 (+204)

2. Pull Requests: 6,291 (+44)

3. Contributors: 197

4. Fork: 251 (+1)

5. Stars: 138



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.


RECAP


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


PERL REVIEW


Please check out Perl solutions review of The Weekly Challenge - 163 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


Dario Mazzeo, an experienced Perl hacker.


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

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


Task 1: Primorial Numbers

Submitted by: Mohammad S Anwar

Write a script to generate first 10 Primorial Numbers.


Primorial numbers are those formed by multiplying successive prime numbers.


For example,

P(0) = 1    (1)
P(1) = 2    (1x2)
P(2) = 6    (1x2×3)
P(3) = 30   (1x2×3×5)
P(4) = 210  (1x2×3×5×7)

Task 2: Kronecker Product

Submitted by: Mohammad S Anwar

You are given 2 matrices.

Write a script to implement Kronecker Product on the given 2 matrices.

For more information, please refer wikipedia page.


For example,

A = [ 1 2 ]
    [ 3 4 ]

B = [ 5 6 ]
    [ 7 8 ]

A x B = [ 1 x [ 5 6 ]   2 x [ 5 6 ] ]
        [     [ 7 8 ]       [ 7 8 ] ]
        [ 3 x [ 5 6 ]   4 x [ 5 6 ] ]
        [     [ 7 8 ]       [ 7 8 ] ]

      = [ 1x5 1x6 2x5 2x6 ]
        [ 1x7 1x8 2x7 2x8 ]
        [ 3x5 3x6 4x5 4x6 ]
        [ 3x7 3x8 4x7 4x8 ]

      = [  5  6 10 12 ]
        [  7  8 14 16 ]
        [ 15 18 20 24 ]
        [ 21 24 28 32 ]


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


SO WHAT DO YOU THINK ?

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

Contact with me