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.

A073805 Numbers k such that 1 + k*R(k) is prime, where R(k) is the reverse of k.

Original entry on oeis.org

1, 2, 4, 6, 10, 16, 18, 20, 24, 25, 26, 28, 36, 42, 50, 52, 58, 61, 62, 63, 66, 68, 70, 80, 81, 82, 85, 86, 90, 100, 108, 112, 116, 120, 132, 136, 138, 140, 152, 162, 170, 190, 198, 200, 204, 205, 209, 210, 211, 213, 214, 219, 223, 224, 228, 231, 234, 236, 238
Offset: 1

Views

Author

Shyam Sunder Gupta, Aug 23 2002

Keywords

Examples

			16 is a term because 16*61 + 1 = 977 is prime.
		

Crossrefs

Programs

  • Maple
    rev:= proc(n) local L,i;
      L:= convert(n,base,10);
      add(L[-i]*10^(i-1),i=1..nops(L))
    end proc:
    filter:= t -> isprime(t*rev(t)+1):
    select(filter, [$1..1000]); # Robert Israel, Jul 03 2024
  • Mathematica
    Select[Range[250],PrimeQ[# IntegerReverse[#]+1]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Oct 05 2017 *)