First, is there a formula that can generate semiprimes in polynomial time? Also, I found this interesting pattern: $$3x+1, 3x+2$$ Inputting increasing natural x spits out $$7, 11, 13, 17, 19, 23, 25, 29,...47, 49..$$ It looks like a series of primes and semiprimes? Any way to prove that?
2026-02-23 06:16:36.1771827396
Pattern for generating primes and semiprimes?
681 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
This is not actually just a sequence of primes and semi primes (I assume the sequence is $3n+1$ if $n$ is even and $3n+2$ if $n$ is odd).
The sequence first fails at $125$ since it is the smallest non prime or semiprime number which isn't divisible by $2$ or $3$. The sequence is exactly all positive integers (greater than $1$) which are equivalent to $1$ or $5$ modulo $6$.
In particular the sequence includes all non primes or semiprimes which do not have factors of $2$ or $3$.