During my math class, I developed an algorithm that generates prime numbers using prime numbers. While my algorithm for generating prime numbers may not be considered revolutionary, it is still a unique solution that showcases my ability to think creatively and analytically.
- The set
$p_k$ contains k prime numbers.
-
Assume that
$\phi$ is an integer bigger than$p_k$ and less than$p_{k+2}$ . If$\phi$ is a prime, then$\phi = p_{k + 1}$ -
Let
$q = \phi$ , Then:
- Use the elements in
$q\cdot P$ to create a$\left| P_{k} \right|\times \left| P_{k} \right|$ matrix according to:
- The set
$p_4$ contains the first 4 prime numbers.
- Let
$q = 11$ . 11 is bigger than 7 and less than 13. Then:
- Create a
$\left| P_{4} \right|\times \left| P_{4} \right| = 4 \times 4$ matrix.
-
$p_{14}$ generates the matrix
Let us look at the first prime numbers, 2 and 3. If