Iccanobif primes: Difference between revisions
Content added Content deleted
(Added Quackery.) |
(→J: fix wrong result) |
||
Line 537: | Line 537: | ||
=={{header|J}}== |
=={{header|J}}== |
||
Implementation: |
Implementation: |
||
⚫ | |||
2 3 5 31 43 773 7951 64901 52057 393121 56577108676171</syntaxhighlight> |
|||
⚫ | |||
⚫ | |||
2 3 5 13 89 233 1597 28657 514229 433494437 2971215073 |
|||
</syntaxhighlight> |
|||
⚫ | |||
Stretch: |
Stretch: |
||
⚫ | |||
⚫ | |||
14 21 37 40 80 104 137 330 406 409 503 888 1020 1122 1911 1947 2283 3727</syntaxhighlight> |
14 21 37 40 80 104 137 330 406 409 503 888 1020 1122 1911 1947 2283 3727</syntaxhighlight> |
||
For the stretch goal we use extended precision integers instead of the usual fixed width representation, and reverse the digits numerically rather than relying on the character representation of the numbers (though it's simplest to rely on the character representation for counting the digits of the resulting primes). |
For the stretch goal we use extended precision integers instead of the usual fixed width representation, and reverse the digits numerically rather than relying on the character representation of the numbers (though it's simplest to rely on the character representation for counting the digits of the resulting primes). |
||