Perl Weekly Challenge - 012

1 min read
← Back to Challenges

With every week, the team is growing and participation is also growing. I also love the fact that members even taking on optional API challenge regularly now. I hope, you are having fun solving weekly challenges as much as I am.


RECAP

Here is the recap of last week challenge.


CHART

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.


NEW MEMBERS

  1. Matthew Persico, Perl hacker from New York, USA.

  2. Aaron Sherman, Perl / Raku hacker from Somerville, MA.

  3. Feng Chang, Perl hacker from Beijing, China since 1999.


Task 1: Smallest non-prime Euclid number


The numbers formed by adding one to the products of the smallest primes are called the Euclid Numbers (see wiki). Write a script that finds the smallest Euclid Number that is not prime. This challenge was proposed by Laurent Rosenfeld.

Task 2: Common directory


Write a script that finds the common directory path, given a collection of paths and directory separator. For example, if the following paths are supplied.

/a/b/c/d
/a/b/cd
/a/b/cc
/a/b/c/d/e

and the path separator is /. Your script should return /a/b as common directory path.

Task 3: Synonyms API


Find out the synonyms of a given word using the Synonyms API. The API challenge is optional but would love to see your solution.


Last date to submit the solution 6 pm (UK Time) Sunday 16th June 2019.