The Weekly Challenge - 198

Monday, Jan 2, 2023| 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: Max Gap

10. TASK #2: Prime Count


HEADLINES


Welcome to the Week #198 of The Weekly Challenge.


Wish you all a very Happy New Year 2023


Today we are going to announce the last Champion of the Year 2022 as today is the first Monday of the month.

So, with great pride we announce, Ali Moradi, as the Champion of the Month. He joined the Team PWC in the Week 096. As of today, he has contributed 43 Perl and 23 Raku solutions. He hasn’t made to the Top 50 in the Leaders Board yet. However he is currently Ranked #8 in the Guest Leaders Board. He has been a prolific guest contributors and contributed in 12 languages as well as Perl and Raku.

Last week of holiday ending now. Time to start new year with fresh energy. As of now, we couldn’t reach the magic number. It is still possible to get there if there is any late submission. So far, we have received 95 contributions. Thank you Team PWC for the support and encouragement.

  Week      Perl       Raku       Blog   
   184       57       31       17   
   185       61       35       19   
   186       58       33       20   
   187       51       34       20   
   188       63       36       16   
   189       62       35       18   
   190       55       32       23   
   191       56       38       21   
   192       59       41       23   
   193       58       31       21   
   194       58       32       19   
   195       58       29       19   
   196       51       29       20   

Last week, we had 31 regular contributors and 11 guest contributors. Thank you everyone for the support and encouragement.

Today, we are giving away Coupon #21 to Thomas Kohler for the book, Learning Perl Exercises by brian d foy. I will share the details with you in a separate email.

PAST WINNERS

  S. No.    Name S. No.  Name
1.  Cheok-Yin Fung 2.  W. Luis Mochan
3.  Robert DiCicco 4.  Kueppo Wesley
5.  Solathian 6.  Dario Mazzeo
7.  Peter Campbell Smith   8.  Kjetil Skotheim
9.  Neils van Dijke 10.  Laurent Rosenfeld  
11.  Duncan C. White 12.  Ali Moradi
13.  Jorg Sommrey 14.  James Smith
15.  Alexander Pankoff 16.  Simon Green
17.  Robbie Hatley 18.  Bob Lied
19.  Athanasius 20.  David Ferrone
21. 22.
23. 24.
25. 26.
27. 28.
29. 30.
31. 32.
33. 34.
35. 36.
37. 38.
39. 40.
41. 42.
43. 44.
45. 46.
47. 48.
49. 50.

I would like to thank every guest contributors for making it special every week. Last week we received 46 guest contributions in 18 languages.


TOP 10 Guest Languages


C++ moved up one place last week. Well done C++ contributors.

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  (1261)
 2. Haskell (523)
 3. Ruby    (442)
 4. Lua     (427)
 5. C++     (307)
 6. C       (306)
 7. Rust    (286)
 8. BQN     (267)
 9. Go      (233)
10. Java    (212)

Blogs with Creative Title


1. Zero Wiggle by Arne Sommer.

2. Add a Little Wiggle Room by Colin Crain.

3. Lists everywhere! by Luca Ferrari.

4. Move with a Wiggle by Roger Bell_West.

5. Sorting Lists by Simon Green.


GitHub Repository Stats


1. Commits: 29,980 (+96)

2. Pull Requests: 7,331 (+32)

3. Contributors: 215

4. Fork: 271

5. Stars: 150 (+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 2023. 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 2023. 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 - 197 by Mohammad S Anwar.


PERL REVIEW


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


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 check out the guest contributions for the Week #197.

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


Task 1: Max Gap

Submitted by: Mohammad S Anwar

You are given a list of integers, @list.

Write a script to find the total pairs in the sorted list where 2 consecutive elements has the max gap. If the list contains less then 2 elements then return 0.


Example 1

Input:  @list = (2,5,8,1)
Output: 2

Since the sorted list (1,2,5,8) has 2 such pairs (2,5) and (5,8)

Example 2

Input: @list = (3)
Output: 0

Task 2: Prime Count

Submitted by: Mohammad S Anwar

You are given an integer $n > 0.

Write a script to print the count of primes less than $n.

Example 1

Input: $n = 10
Output: 4 as in there are 4 primes less than 10 are 2, 3, 5 ,7.

Example 2

Input: $n = 15
Output: 6

Example 3

Input: $n = 1
Output: 0

Example 4

Input: $n = 25
Output: 9


Last date to submit the solution 23:59 (UK Time) Sunday 8th January 2023.


SO WHAT DO YOU THINK ?

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

Contact with me