I proposed "matrix sieve" algorithm for finding primes:
Positive integers which do not appear in both arrays $A1(i,j)=6i^2+(6i−1)(j−1)$ and $A2(i,j)=6i^2+(6i+1)(j−1)$
| 6 11 16 21 ...|
A1(i,j) = | 24 35 46 57 ...|
| 54 71 88 105 ...|
| 96 119 142 165 ...|
|... ... ... ... ...|
| 6 13 20 27 ...|
A2(i,j) = | 24 37 50 63 ...|
| 54 73 92 111 ...|
| 96 121 146 171 ...|
|... ... ... ... ...|
are indexes k of primes in the sequence $S1(k)=6k−1$.
Positive integers which do not appear in both arrays $A3(i,j)=6i^2−2i+(6i−1)(j−1)$ and $A4(i,j)=6i^2+2i+(6i+1)(j−1)$
| 4 9 14 19.. |
|20 31 42 53...|
|48 65 82 99...|
A3(i,j)= |88 111 134 157..|
|... ... ... ... |
| 8 15 22 29 ..|
|28 41 54
A4(i,j)= |60 79 98 117..|
|104 129 154 179...|
|... ... ... ... |
are indexes k of primes in the sequence $S2(k)=6k+1$. As we can see the expressions for arrays A1-A4 differ in that way: columns 1 in arrays A1 and A2 are the same, but columns 1 in arrays A3 and A4 are different, so number of primes in the sequence S1(k) will be slightly bigger than number of primes in the sequence S2(k). But the ratio of number of primes in the sequence S1(k) to number of primes in the sequence S2(k) tends to be 1 for greater ranges. For example: ratio of number of primes in S1 to the number of primes in S2 for the range [5;190] ratio=21/19=1,105263; for the range [5;950] ratio=82/77=1,064935; for the range [5;4750] ratio=323/314=1,028662 .for the range [5;23750] ratio=1332/1307=1,019138;for the range [5;118750] ratio=5613/5579=1,006094; for the range [5;593750] ratio=24345/24284=1,002512 and so on... SEE [link ]http://www.planet-source-code.com/vb/scripts/BrowseCategoryOrSearchResults.asp?lngWId=3&blnAuthorSearch=TRUE&lngAuthorId=21687209&strAuthorName=Boris%20Sklyar&txtMaxNumberOfEntriesPerPage=25