TABLE OF CONTENTS
1. HEADLINES
2. RECAP
3. PERL REVIEW
4. RAKU REVIEW
5. CHART
6. NEW MEMBERS
7. GUESTS
8. TASK #1: Prime Sum
9. TASK #2: Word Search
HEADLINES
Team PWC, you did it once again. Congratulations to each and every member. We have now created a record of 4 consecutive weeks of 100+ contributions. I wasn’t hopeful of breaking at the end of Friday looking at the numbers to be honest. But for some reason, I knew weekends might create magic.
I am tired and exhausted now after the marathon of 4 weeks. Havind said that I know I will be back with full energy in couple of days again.
1) Week #001: 142
2) Week #002: 109
3) Week #030: 115
4) Week #033: 108
5) Week #046: 106
6) Week #072: 110
7) Week #073: 108
8) Week #074: 113
9) Week #075: 111
Last week, we had guest contributions in 10 different languages. We beat that record as well as we have contributions in 11 different languages this week. Two new languages added to the list i.e. OCaml and Gembase. I would like to THANK each and every guest contributors.
1) Python: 7
2) Lisp: 4
3) Haskell: 3
4) C++: 2
5) Clojure: 2
6) Java: 2
7) Rust: 2
8) Swift: 2
9) Gembase: 1
10) Prolog: 1
11) OCaml: 1
While we are talking about contributions, lets share some interesting stats from the GitHub repository.
1) Commits: 8915
2) Pull Requests: 2177
3) Contributors: 122
4) Fork: 151
5) Stars: 72
Last but not the least, I would like to thank each and every member for their support and encouragement.
RECAP
Quick recap of the “The Weekly Challenge - 075” by Mohammad S Anwar.
PERL REVIEW
Please checkout Perl solutions review of the “The Weekly Challenge - 074” by Colin Crain.
If you missed any past reviews then please checkout the collection.
RAKU REVIEW
Please checkout Raku solutions review of the “The Weekly Challenge - 074” by Andrew Shitov.
If you missed any past reviews then please checkout 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
Alex Mauney, an experienced Perl hacker.
Alexander Pankoff, an experienced Perl hacker from Hannover, Germany.
I started using Perl professionally and recreationally around 5 years ago. I also work with TypeScript and use Haskell for hobby projects.
Tyler Wardhaugh
I’ve been using Perl for a long time, on and off. Mostly Perl 5, but I have followed Raku development from afar. I’ve been using Clojure for a few years for personal projects and would like to do “guest” submissions in that to improve my skills in it. I notice you have Common Lisp, but no Clojure.
With the above addition, we now have 184 members in the Team PWC.
Please find out How to contribute?, if you have any doubts.
Please give it a try to an excellent tool EZPWC created by respected member Saif Ahmed of Team PWC.
GUESTS
1) Andrew Shitov shared solution to Task #2 in C++.
2) Adam Russell shared solution to Task #1 in Prolog.
3) Cheok-Yin Fung shared solutions to Task #1 and Task #2 in Java.
4) Cheok-Yin Fung shared solutions to Task #1 and Task #2 in Lisp.
5) Cheok-Yin Fung shared solutions to Task #1 and Task #2 in Python.
6) Jonas Berlin shared solutions to Task #1 and Task #2 in Rust.
7) Laurent Rosenfeld shared solution to Task #2 in Gembase.
8) Lubos Kolouch shared solution to Task #1 in Python.
9) Mohammad S Anwar shared solutions to Task #1 and Task #2 in Swift.
10) Myoungjin Jeon shared solutions to Task #1 and Task #2 in Haskell.
11) Myoungjin Jeon shared solutions to Task #1 and Task #2 in Lisp.
12) Roger Bell_West shared solutions to Task #1 and Task #2 in Python.
13) Shawn Wagner shared solution to Task #1 in OCaml.
14) Tyler Wardhaugh shard solutions to Task #1 and Task #2 in Clojure.
15) Ulrich Rieke shared solutions to Task #2 in C++.
16) Ulrich Rieke shared solution to Task #2 in Haskell.
17) Walt Mankowski shared solutions to Task #1 and Task #2 in Python.
Please find out past solutions by respected guests. Please do share your creative solutions in other languages.
TASK #1 › Prime Sum
Submitted by: Mohammad S Anwar
Reviewed by: Ryan Thompson
You are given a number $N
. Write a script to find the minimum number of prime numbers required, whose summation gives you $N
.
For the sake of this task, please assume 1
is not a prime number.
Example:
Input:
$N = 9
Ouput:
2 as sum of 2 prime numbers i.e. 2 and 7 is same as the input number.
2 + 7 = 9.
TASK #2 › Word Search
Submitted by: Neil Bowers
Reviewed by: Ryan Thompson
Write a script that takes two file names. The first file would contain word search grid as shown below. The second file contains list of words, one word per line. You could even use local dictionary file.
Print out a list of all words seen on the grid, looking both orthogonally and diagonally, backwards as well as forwards.
Search Grid
B I D E M I A T S U C C O R S T
L D E G G I W Q H O D E E H D P
U S E I R U B U T E A S L A G U
N G N I Z I L A I C O S C N U D
T G M I D S T S A R A R E I F G
S R E N M D C H A S I V E E L I
S C S H A E U E B R O A D M T E
H W O V L P E D D L A I U L S S
R Y O N L A S F C S T A O G O T
I G U S S R R U G O V A R Y O C
N R G P A T N A N G I L A M O O
E I H A C E I V I R U S E S E D
S E T S U D T T G A R L I C N H
H V R M X L W I U M S N S O T B
A E A O F I L C H T O D C A E U
Z S C D F E C A A I I R L N R F
A R I I A N Y U T O O O U T P F
R S E C I S N A B O S C N E R A
D R S M P C U U N E L T E S I L
Output
Found 54 words of length 5 or more when checked against the local dictionary. You may or may not get the same result but that is fine.
aimed, align, antes, argos, arose, ashed, blunt, blunts, broad, buries, clove, cloven, constitution, constitutions, croon, depart, departed, enter, filch, garlic, goats, grieve, grieves, hazard, liens, malign, malignant, malls, margo, midst, ought, ovary, parted, patna, pudgiest, quash, quashed, raped, ruses, shrine, shrines, social, socializing, spasm, spasmodic, succor, succors, theorem, theorems, traci, tracie, virus, viruses, wigged
Last date to submit the solution 23:59 (UK Time) Sunday 6th September 2020.