Every week, we will be releasing a new puzzle for you to solve. You may use any language you want but feel free to try something new. After completing puzzles, create a ticket on our Discord server and send us your solution. At the end of every week, we will review the problem during our meeting.

View the leaderboard **[here]**

This weekend, you head to your local grocery store to get ingredients for your thanksgiving dinner. After entering, you are given the following map:

################################################################################# # # # # # C # # # # # A# A # A# # # # ##### # ##### ### # # # # ###C# # # # # #######E# # ### # ##### # ##### # ### # # # # # # # # # # # # N # # # # # # # # # A# # ##### ##### ####### # ########### ### # # # # ##### # # ##### # # ### #O### # # # # # # # # # # # # # # # # # # # # # # # # # # ### # ####### # # ########### ### ##### # # ### # # # # ##### ######### ##### # # # # # # # # # # # # # # # # # # # # # ### # ##### # ### ##### ######### ### # # # ####### ##### # # ### # ##### # ##### # # C# # # # # # # # # # AAAA# # # # # # # # # ### # ####### ######### ##### # # ### # ##### # ##### ### # # ##### ##### ### # # # # TTTTTTTT # # # # # # # # # # # # # # # # # # # ############# # ##### ### # # ##### ##### ##### # ### # # # # ##### # ### # # # # # # # # # # # # # # # # # # # # # # # # # # # ### # # # # ### ### # ### # # # # ### # ### # # ##### # # ######### # # # ### # # # # # #C # # # # # # # # # # # # # # # # PPP # # # # # # ### # ###F##### ### ##### ### # ##### # # ##### # # ##### # ##### ### # ##### # # # # # # # # # # AAA # # # # # # # # # # # # # # # ### ### # ### # # # ########### # ### ####### ##### # ####### ##### # ##### # # P # # # # # # # # # # # # # # # #PPPPPPP# # # # # #################################################################################

The letters in this map represent the locations of certain food items. An "A" represents the location of an apple. How many apples are available?

In preparation for the Advent of Code competition, this week's puzzle will be in the same style and format.

Santa is having trouble finding gifts in his workshop and calls on you to help. You find what appears to be a log of where Santa went. The log looks like this:

32, 43, 24, 43, 27, -25, -1, 6, -39, -11, 33, 10, 29, 41, -17, -24, -44, 25, -22, -17, 27, 23, -5, 11, 31, 11, 32, 6, -36, 4, -34, 7, 19, 17, 28, 49, 43, 47, 22, 43, -20, 33, 4, -11, 19, 14, -49, 46, 30, -27, -49, 28, 35, 5, 13, -45, -29, 20, -50, 25, 36, -13, 1, 37, -44, -7, -49, 21, -35, 4, -23, 1, -6, -22, -43, 28, 38, 35, 40, -10, 48, 23, -37, -20, 8, 48, -4, 44, 21, -16, 39, -12, 40, 21, 42, -19, -3, -1, 5, -2

Santa started on **Floor 0** of his workshop when he started his log. Each number represents the number of floors he traveled. A positive number means that he traveled to a higher floor, while a negative number means that he traveled to a lower floor. After Santa finished his travel, he placed the gifts on the floor he ended up on.

Note that Santa's workshop has floors below Floor 0.

On what floor are the gifts located?

After completing part 1, enter your answer below to view part 2.

Enter your answer:

This Saturday, you go trick or treating in your neighborhood. After a few hours, you no longer recognize any of the houses and you realize that you're lost. You see a very long street of houses and decide to get candy from that street, then find out where you are.

You ring on the door of the first house on this very long street and a witch greets you. She says,

If you have an even number of candies, you give me half your candy. But if you have an odd number of candies I triple your candy amount and then add one more.

You think this sounds a little fishy, so you turn to walk away, but the entrance is gone. Seeing no escape, you have no choice but to listen.

After making your way past this house, you notice that this was only the first of a row of 250 houses, all with the same strange deal. You must visit each house in order before exiting this strange street.

**Assuming you can bring a maximum of 100,000 candies into the first house, what is the maximum number of candy you can exit with after visiting all 250 houses?**

A magician has a deck of 52 cards, and performs a magic trick. During the magic trick, cards are pulled out and replaced under specific conditions.

The magician checks each of these conditions in order. If the condition is satisfied, the magician performs the associated action, which may affect the next condition.

- If the number of cards is even, remove 4 cards from the deck
- If the number of cards is odd, remove 2 cards from the deck.
- If the there are more than 30 cards in the deck, remove 1 card from the deck.
- If the there are less than 20 cards in the deck, add 1 card to the deck.

Cards are removed and added from a secondary hidden pile. The number of cards in the secondary pile is unlimited. During the magic trick, the number of cards in the main deck may exceed 52.

The magician repeats this magic trick until there is only one card left in the pile. **How many times does the magician perform this trick?**

A palindromic number is one such that written backward, its digits match that of the original value.

Examples of palindromic numbers include: 262, 27972, 62988926

Find the **smallest number above 1000 that is both palindromic and prime.**