<h3 class='likesectionHead' id='the-weekly-challenge-prolog-solutions'><a id='x1-1000'></a>The Weekly Challenge 326 (Prolog Solutions)</h3>

The examples used here are from the weekly challenge problem statement and demonstrate the working solution. Part 1: Day of the Year You are given a date in the format YYYY-MM-DD. Write a script to find day number of the year that the given date represent. Our solution is short, it involves just a couple of computations, and will be contained in a single file that has the following structure.…