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!)
A088291 Primes in which the digit string can be partitioned into three parts such that the sum of the first two is equal to the third, and the second part is nonzero. 6

%I #14 Mar 06 2021 15:13:56

%S 167,257,347,617,5813,7411,8311,8513,9413,9817,10111,10313,11213,

%T 11617,12113,12517,12829,13417,13619,14243,14519,14923,15217,15823,

%U 15859,16061,16319,17623,18119,18523,19423,19697,20323,20929,21517,22123

%N Primes in which the digit string can be partitioned into three parts such that the sum of the first two is equal to the third, and the second part is nonzero.

%C Note that some terms have 2 "solutions", e.g., 11213 => 1 + 12 = 11 + 2 = 13. - _Zak Seidov_, Apr 30 2013

%H Zak Seidov, <a href="/A088291/b088291.txt">Table of n, a(n) for n = 1..1000</a>

%e 12517 is a member as it can be digit partitioned in to 12,5 and 17, 12+5 =17.

%e 3407 is not a member as the partitions 3, 4, 07 is not permitted though 3 + 4 = 7.

%o (PARI) is(n)=my(d=digits(n)); for(i=1,#d-2, for(j=i+1,#d-1, if(digits(fromdigits(d[1..i])+fromdigits(d[i+1..j]))==d[j+1..#d] && d[i+1], return(isprime(n))))); 0

%o select(is,primes(10^4)) \\ _Charles R Greathouse IV_, Sep 21 2015

%Y See A067860 for another version.~

%K base,nonn

%O 1,1

%A _Amarnath Murthy_, Sep 30 2003

%E More terms from _David Wasserman_, Aug 04 2005

%E Definition clarified by _N. J. A. Sloane_, Mar 06 2021 at the suggestion of _Tanya Khovanova_

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 23 09:22 EDT 2024. Contains 371905 sequences. (Running on oeis4.)