I'm learning. Trying to figure out what this is a variation of. It's cool and I want to learn more about it. It's been fun to watch as my app runs into them.
Any way, in a search for twin primes, I noticed that if I
- Take a positive number n
- (that's greater than 1. I do not check the first n it's n ± 1 for primality.)
- multiply n by 3
- check for primes at ± 1
- if we have a twin prime pair
- take n, double the multiplier (ie 3 becomes 6), multiply it by n.
- repeat 3 and 4 - break when no twin prime pair is found.
- n+1, repeat from 1
Here's a few listed as n, 3n, 6n, 12n, 24n, ... and check n ± 1 for primality after the first n (its not being counted).
An example of my format... I'm trying my best.
n=4, (3n = 12, 6n = 72)
4, (12, 72)
6, (18, 108)
9450, (28350, 170100, 2041200)
11490, (34470, 206820, 2481840)
157570, (472710, 2836260, 34035120, 816842880)
860640, (2581920, 15491520, 185898240, 4461557760)
Thanks! I hope it's okay I'm only listing the number between the twin primes - it's easier for me to watch and keep track of as stuff is processing.