@deck26 and @mshang47 did the hard part of actually coding the prime finder. I just attached the puzzle to it.
https://www.youtube.com/watch?v=tBXGIXEV7tI&ab_channel=Matt_Parker_2