Find prime n such that reversed n is also prime: Difference between revisions
Content deleted Content added
Added PL/M |
m →{{header|Wren}}: Minor tidy |
||
Line 1,627:
{{libheader|Wren-math}}
{{libheader|Wren-fmt}}
<syntaxhighlight lang="wren">import "./math" for Int
var reversed = Fn.new { |n|
Line 1,647 ⟶ 1,645:
}
System.print("Primes under 500 which are also primes when the digits are reversed:")
Fmt.tprint("$3d", reversedPrimes, 17)
System.print("\n%(reversedPrimes.count) such primes found.")</syntaxhighlight>
|