Posts

Project Euler.net Problem 49

Image
https://en.wikipedia.org/wiki/Leonhard_Euler What: Solution for https://projecteuler.net/problem=49. Why: I like numbers, primes are interesting, and the RSA problem is fascinating so let's do a prime puzzle! Note that I took this from the perspective of the question is vague. That is to say I don't know if they are looking for another series of 4-digit primes with a delta of 3330 or another delta entirely. So let's explore what the data and see what comes of it. As you can see at the end there is an interesting series of 3 4-digit prime permutations with a common delta (990) but are not in series with each other! If you'd like to run the solution, simply copy and paste both Python scripts in the same directory, and run prime_euler_49.py. Sample output is given at the end of that script. #!/usr/bin/python3 def prime(num): """ Title: prime_func.py """ """