Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #16 Sep 08 2022 08:46:04
%S 3,17,83,241,509,877,1433,2063,2897,3911,4943,6353,8011,9661,11909,
%T 13693,16141,18787,21727,24781,28307,32261,35801,40093,44621,49139,
%U 54251,59417,64853,70621,77047,83617,90203,97039,103991,112097,120223,128683,136813,145903
%N a(n) = prime(prime(n^2)).
%H Vincenzo Librandi, <a href="/A217623/b217623.txt">Table of n, a(n) for n = 1..1000</a>
%p a:= n-> (ithprime@@2)(n^2):
%p seq(a(n), n=1..40); # _Alois P. Heinz_, Mar 17 2021
%t Table[Prime[Prime[n^2]], {n, 100}]
%o (Magma) [NthPrime(NthPrime(n^2)): n in [1..50]];
%o (Python)
%o from sympy import prime
%o def a(n): return prime(prime(n**2))
%o print([a(n) for n in range(1, 41)]) # _Michael S. Branicky_, Mar 17 2021
%o (PARI) a(n) = prime(prime(n^2)); \\ _Michel Marcus_, Mar 17 2021
%Y Cf. A000040, A011757.
%Y Subsequence of A006450.
%K nonn,easy
%O 1,1
%A _Vincenzo Librandi_, Oct 13 2012