login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A114758 Smallest prime of the form: n successive positive integers in descending order followed by a 1. 9
11, 211, 5431, 76541, 17161514131, 1211109871, 98765431, 876543211, 9876543211, 242322212019181716151, 11109876543211, 1131121111101091081071061051041031021, 555453525150494847464544431 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
a(4) = 76541, four successive positive integers 7,6,5,4 in descending order followed by a 1.
MAPLE
f:= proc(n) local k, p, j;
for k from 0 do
p:= parse(cat(seq(k+j, j=n .. 1, -1), 1));
if isprime(p) then return p fi
od
end proc:map(f, [$1..15]); # Robert Israel, Apr 03 2023
MATHEMATICA
a[n_]:=(For[m=1, (v={}; Do[v=Join[v, IntegerDigits[k]], {k, m+n-1, m, -1}]); !PrimeQ[10FromDigits[v]+1], m++ ]; 10FromDigits[v]+1); Table[a[n], {n, 14}] (* Farideh Firoozbakht, Jan 02 2006 *)
f[n_] := Block[{t = Reverse@Range@n}, While[p = FromDigits@Flatten@IntegerDigits@Join[t, {1}]; ! PrimeQ@p, t++ ]; p]; Array[f, 13] (* Robert G. Wilson v, Jan 03 2006 *)
CROSSREFS
Sequence in context: A110747 A112704 A243674 * A088061 A070220 A134069
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Jan 01 2006
EXTENSIONS
More terms from Robert G. Wilson v, Jan 03 2006
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 09:42 EDT 2024. Contains 371935 sequences. (Running on oeis4.)