Find prime n such that reversed n is also prime: Difference between revisions
Content added Content deleted
(→{{header|RPL}}: straightforward approach) |
(→J: add) |
||
Line 739: | Line 739: | ||
359 373 383 389</pre> |
359 373 383 389</pre> |
||
=={{header|J}}== |
|||
<syntaxhighlight lang="j"> (#~ 1 p: |. &.: ":"0) p: i. _1 p: 500 |
|||
2 3 5 7 11 13 17 31 37 71 73 79 97 101 107 113 131 149 151 157 167 179 181 191 199 311 313 337 347 353 359 373 383 389</syntaxhighlight> |
|||
=={{header|jq}}== |
=={{header|jq}}== |