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!)
A200260 Numbers k such that k-th prime has an odd digit sum. 6

%I #19 Sep 08 2022 08:46:00

%S 2,3,4,9,10,13,14,15,18,19,23,24,30,32,33,34,36,37,40,41,43,44,45,46,

%T 48,49,50,53,56,57,60,61,64,65,66,67,68,71,72,74,75,78,79,80,82,86,87,

%U 89,90,91,93,102,105,106,108,109,110,111,116,117,118,121,124

%N Numbers k such that k-th prime has an odd digit sum.

%H T. D. Noe, <a href="/A200260/b200260.txt">Table of n, a(n) for n = 1..10000</a>

%t Select[Range[1000], OddQ[Total[IntegerDigits[Prime[#]]]] &] (* _T. D. Noe_, Nov 21 2011 *)

%o (Magma) [ n: n in [1..162] | IsOdd(&+Intseq(NthPrime(n))) ]; // _Bruno Berselli_, Nov 15 2011

%o (PARI) isok(k) = sumdigits(prime(k)) % 2; \\ _Michel Marcus_, Jul 03 2021

%Y Cf. A119450, A200259 (complement).

%K nonn,base

%O 1,1

%A _N. J. A. Sloane_, Nov 15 2011

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 18 20:26 EDT 2024. Contains 371781 sequences. (Running on oeis4.)