Project Euler - Problem root13

Official link: https://projecteuler.net/problem=root13

Note: You won't be able to access the link until you unlock the problem

Grade feel: 5%

Thought Process

My fourth bonus problem, so far all have been a bit of jokes except Problem 18i which was extremely hard. This one is trivial, simply use the Decimal module and it's done.

Interactive Code

Input 2 integers separated by a space (n, p)

Code returns S(n, p)