Smarandache prime-digital sequence: Difference between revisions

Content added Content deleted
Line 1,068: Line 1,068:
See e.g. [[Erd%C5%91s-primes#jq]] for a suitable implementation of `is_prime` as used here.
See e.g. [[Erd%C5%91s-primes#jq]] for a suitable implementation of `is_prime` as used here.
<lang jq>def Smarandache_primes:
<lang jq>def Smarandache_primes:
# Output: a naively constructed stream of candidate strings of length >= 2
# Output: a naively constructed stream of candidate strings of length >= 1
def Smarandache_candidates:
def Smarandache_candidates:
def unconstrained($length):
def unconstrained($length):