2-3-5-7 wheel factorization seems to skip prime number 331

这一生的挚爱 提交于 2019-12-04 12:37:00

Wikipedia is correct.

331 is in the 1 spoke of the wheel. The spoke is not shaded, so 331 is potentially prime. And in fact, it is prime.

121 is also in the 1 spoke of the wheel, so 121 is potentially prime. That is, it is not eliminated as a prime by the wheel. However, it is not prime.

The wheel doesn't allow you to make any inference about the primality of 331 based on the non-primality of 121. Sorry.

I have an implementation of wheel factorization at my blog, if you want to look at it.

Yes, you are only allowed to strike off the spokes that are multiples of 2, 3, 5 and 7. In fact, 121 which is a multiple of 11, is relatively prime to 210. So the numbers on the 121 spoke can be either prime or composite.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!