Significance of calculating non primes in sequence.

idiom
Messages
20
Reaction score
1
Instead of using a sieve to remove non-primes from the sequence.
6x-1 x =0 to x=n
6x+1 x=0 to x= n
What if you calculate and remove the non-primes. I have determined how to calculate the non-primes in this set. By subtracting them from the entire set you are left with all primes. I find this solution efficient because you can precisely calculate all of the semi primes and roots of the set. No factoring of large numbers is necessary. Furthermore it is not necessary to know what is in the set:
6x-1 x =0 to x=n
6x+1 x=0 to x= n
to do this.
Would an array of this nature be useful as opposed to trying to sieve or predict numbers?
Has anyone seen this done and if so where might I find more information about the effort.
If so how do you suggest I present my solution?
Thanks
 
Last edited:
Physics news on Phys.org
I have done the above about 10 years ago. and I will be posting it later. For now I would say just that to get the primes up to N, you only need to consider composites up to N/3.
You start by setting matrices (6i+1)(6j+1)=M1, (6i-1)*(6j-1)=M2 and (6i+1)*(6j-1)=M3.
The nice thing about it is that you really don't need all the "multiplications" to produce the matrices' elements. The second nice thing about the whole thing is that you only need to work with indices instead of the number themselves. A number like 7*7=49 can also be represented by Index(49)=(N-1)/6=(49-1)/6=8. Once you produce the matrices of indices, you have all you need to find the primes. They will be the ones whose indices cannot be produced ( or indices which cannot be a matrix element of M1, M2 or M3 ). Then it's just a matter of sorting out a list of indices from 1,N.
I will try to find a write up and will post it later.
 
I asked online questions about Proposition 2.1.1: The answer I got is the following: I have some questions about the answer I got. When the person answering says: ##1.## Is the map ##\mathfrak{q}\mapsto \mathfrak{q} A _\mathfrak{p}## from ##A\setminus \mathfrak{p}\to A_\mathfrak{p}##? But I don't understand what the author meant for the rest of the sentence in mathematical notation: ##2.## In the next statement where the author says: How is ##A\to...
The following are taken from the two sources, 1) from this online page and the book An Introduction to Module Theory by: Ibrahim Assem, Flavio U. Coelho. In the Abelian Categories chapter in the module theory text on page 157, right after presenting IV.2.21 Definition, the authors states "Image and coimage may or may not exist, but if they do, then they are unique up to isomorphism (because so are kernels and cokernels). Also in the reference url page above, the authors present two...
When decomposing a representation ##\rho## of a finite group ##G## into irreducible representations, we can find the number of times the representation contains a particular irrep ##\rho_0## through the character inner product $$ \langle \chi, \chi_0\rangle = \frac{1}{|G|} \sum_{g\in G} \chi(g) \chi_0(g)^*$$ where ##\chi## and ##\chi_0## are the characters of ##\rho## and ##\rho_0##, respectively. Since all group elements in the same conjugacy class have the same characters, this may be...
Back
Top