cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A340744 Primes in A340618, in the order in which they occur.

Original entry on oeis.org

31, 23, 19, 43, 73, 53, 43, 37, 61, 43, 83, 73, 43, 73, 53, 67, 79, 73, 61, 59, 173, 151, 109, 223, 163, 109, 127, 109, 109, 233, 109, 109, 163, 139, 113, 109, 109, 181, 109, 109, 523, 353, 199, 383, 331, 199, 223, 313, 199, 173, 163, 271, 229, 211, 199, 199, 751, 503, 433, 307, 229, 313, 2411
Offset: 1

Views

Author

J. M. Bergot and Robert Israel, Jan 18 2021

Keywords

Examples

			a(4) = A316650(23) = 43 is the fourth term in A316650 that is prime.
		

Crossrefs

Programs

  • Maple
    f:= proc(n) local a, b, c,p;
      c:= convert(convert(n, base, 10), `+`);
      a:= floor(n/c);
      b:= n mod c;
      p:= 10^(1+ilog10(b))*a+b;
      if isprime(p) then p fi;
    end proc:
    map(f, [$1..1000]);

Formula

a(n) = A316650(A340618(n)).