This question has already been answered:
It is necessary to find the number of dividers of an n-digit number (n> 20). How to implement it?
This question has already been answered:
It is necessary to find the number of dividers of an n-digit number (n> 20). How to implement it?
A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .
1 You can study long arithmetic. For example, here or here .
2 You can use ready-made long arithmetic. For example, MPIR or GMP
Well, and then doing a bust on all simple numbers, in the hope that it will work quickly. In the worst case, it will work ... several billion years.
UPD: 235910232262849857961 way, this is a random 21-digit prime number to check for 235910232262849857961
n>20 ... - ZealintSource: https://ru.stackoverflow.com/questions/594407/
All Articles