Jump to content

Primes whose first and last number is 3: Difference between revisions

m
→‎{{header|Phix}}: added with js
m (→‎{{header|Phix}}: added with js)
Line 415:
Works for any digit, partly inspired by the Wren entry.
<!--<lang Phix>(phixonline)-->
<span style="color: #008080;">with</span> <span style="color: #008080;">javascript_semantics</span>
<span style="color: #008080;">function</span> <span style="color: #000000;">primes_with_first_and_last_digit</span><span style="color: #0000FF;">(</span><span style="color: #004080;">integer</span> <span style="color: #000000;">d</span><span style="color: #0000FF;">,</span> <span style="color: #000000;">p10</span><span style="color: #0000FF;">)</span>
<span style="color: #000080;font-style:italic;">-- d should be 0..9
7,805

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.