Jump to content

Prime words: Difference between revisions

m
m (→‎{{header|REXX}}: added a blank line to the output.)
Line 465:
 
=={{header|Julia}}==
See [[https://rosettacode.org/wiki/Alternade_words#Julia]] for the foreachword function.
<lang julia>const primelettervalues = [67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113]
isprimeword(w, _) = all(c -> Int(c) in primelettervalues, collect(w)) ? w : ""
4,105

edits

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