Project Euler 190 - Maximising a weighted product

Official link:

Thought Process

Finding a maximum for a function, Pm, given a constraint, luckily for me I did Lagrange Multipliers last year (which is so tedious btw) luckily here the equation are extremely simple which leads to a very nice solution

Interactive Code

Input an integer (yourinput)

Code will output [Pyourinput]