The Weekly Challenge - 167

Monday, May 30, 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: Circular Prime

10. TASK #2: Gamma Function


HEADLINES


Welcome to the Week #167 and I got the opportunity to propose the challenge.

For me the main attraction was the blog post by Julien Fiegehenn for the first time.

Colin Crain seems to be busy as we didn’t get the blog post 2 weeks in a row. However, Ryan Thompson is filling up the space for now. I am so greatful to all those who blog about their solutions. I know how much effort it takes to get one out.

Sadly, I haven’t participated in the weekly challenge for 2 weeks in a row. What a shame !!! I aim to do at least one task, even that didn’t happen. I am hoping to get back on track this week. Please wish me luck. I am going through low phase right now, so just taking it easy. My TODO list keeps growing and not much happening unfortunately. I avoid looking at my own TODO list as it is embarassing. I pretend never seen it. Not sure how long it would carry on like this. I stopped adding any new items to the TODO list.

I would like to thank James Smith for his contributions. I would highly recommend you do checkout his work as he always goes beyond what is needed. It takes a lot of time to get to that. He has been doing this for weeks now.

Similary for guest contributions, Roger Bell_West, is leading the pack. I used to contribute in Swift, Python and Java but not anymore. So I can relate how much time and energy it takes to do all of these week after week.

PokGoPun is on the loose apparently as he is not doing solving the current weekly challenge in Go but also the past weekly challenges. He (I am assuming) is already gone past me in the guest leader board. Well done.

Good luck for the next challenge.


Blogs with Creative Title


1. Hexa Diff by Arne Sommer.

2. 0x7e57ab1e 0xc0deba5e by Dave Jacoby.

3. Github DWIM by Julien Fiegehenn.

4. files, directories and hex! by Luca Ferrari.

5. D00DlE5 by Peter Campbell Smith.

6. Hexing the Directories by Roger Bell_West.


GitHub Repository Stats


1. Commits: 25,532 (+169)

2. Pull Requests: 6,171 (+33)

3. Contributors: 195

4. Fork: 248

5. Stars: 132



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 - 166 by Mohammad S Anwar.


PERL REVIEW


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


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

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


Task 1: Circular Prime

Submitted by: Mohammad S Anwar

Write a script to find out first 10 circular primes having at least 3 digits (base 10).

Please checkout wikipedia for more information.


A circular prime is a prime number with the property that the number generated at each intermediate step when cyclically permuting its (base 10) digits will also be prime.


Output
113, 197, 199, 337, 1193, 3779, 11939, 19937, 193939, 199933

Task 2: Gamma Function

Submitted by: Mohammad S Anwar

Implement subroutine gamma() using the Lanczos approximation method.


[2022-05-31]

Ryan Thompson wrote an interesting blog explaining the subject in details. Highly recommended if you are looking for more information. BLOG.


Example
print gamma(3); # 1.99
print gamma(5); # 24
print gamma(7); # 719.99


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


SO WHAT DO YOU THINK ?

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

Contact with me