danwdart / projects

Random projects in random languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[maths] 2n+n²-1 with evens

danwdart opened this issue · comments

https://www.youtube.com/watch?v=ctC33JAV4FI

I was doing some math and found that (2n)+(n^2)-1 created primes very well if n is even. Example: (2 x 99922222222220)+(99922222222220^2)-1 is prime. I also saw that up to 200 being n (leaving out odd numbers) it spit out a prime 42% of the time.

https://www.youtube.com/channel/UCqf7Ct0eAksA0Qob44ZkITQ

This ends up quite interesting, but it's already in the oeis.