Primes whose first and last number is 3: Difference between revisions
Primes whose first and last number is 3 (view source)
Revision as of 21:01, 28 February 2023
, 1 year ago→{{header|Wren}}: Wren-trait -> Wren-iterate
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
m (→{{header|Wren}}: Wren-trait -> Wren-iterate) |
||
Line 836:
=={{header|Wren}}==
{{libheader|Wren-math}}
{{libheader|Wren-
{{libheader|Wren-seq}}
{{libheader|Wren-fmt}}
Line 842:
===Basic task===
<syntaxhighlight lang="ecmascript">import "/math" for Int
import "/
import "/seq" for Lst
import "/fmt" for Fmt
Line 867:
This version deals with primes (in base 10) beginning and ending with any specified digit and with up to a given number of digits.
<syntaxhighlight lang="ecmascript">import "/math" for Int
import "/
import "/seq" for Lst
import "/fmt" for Fmt
|