Prime Numbers in Java - Algorithms

前端 未结 6 895
南笙
南笙 2021-01-22 15:48

I have started learning to code in Java and decided I would use the Project Euler site to give me little tasks to try and complete with each bit of new coding I learn. So I came

6条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-22 16:24

    Since you are doing this as a learning exercise, when you have improved you current program enough, why not try solving the same problem in a different way? The Fermat Factorization Method finds large factors first.

提交回复
热议问题