Ascending primes: Difference between revisions
Content added Content deleted
m (→{{header|C++}}) |
|||
Line 281: | Line 281: | ||
* get 7027260 primes, because there are so many primes smaller than 123456789 |
* get 7027260 primes, because there are so many primes smaller than 123456789 |
||
* (see also Wolfram Alpha).On the other hand, there are only 511 distinct |
* (see also Wolfram Alpha).On the other hand, there are only 511 distinct |
||
* positive integers having their digits arranged in ascending order. |
* nonzero positive integers having their digits arranged in ascending order. |
||
* Therefore, it is better to start with numbers that have properly arranged |
* Therefore, it is better to start with numbers that have properly arranged |
||
* digitsand then check if they are prime numbers.The method of generating |
* digitsand then check if they are prime numbers.The method of generating |