made this purely to test a theory of mine but thought the way it works was pretty nifty and decided to share it on my alt
2147483647 is prime you can try it