login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A088291 Primes in which the digit string can be partitioned in three parts such that the sum of the first two = the third one. 5
167, 257, 347, 617, 5813, 7411, 8311, 8513, 9413, 9817, 10111, 10313, 11213, 11617, 12113, 12517, 12829, 13417, 13619, 14243, 14519, 14923, 15217, 15823, 15859, 16061, 16319, 17623, 18119, 18523, 19423, 19697, 20323, 20929, 21517, 22123 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

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

LINKS

Zak Seidov, Table of n, a(n) for n = 1..1000

EXAMPLE

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

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

PROG

(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

select(is, primes(10^4)) \\ Charles R Greathouse IV, Sep 21 2015

CROSSREFS

Sequence in context: A142664 A247941 A142329 * A140003 A015992 A065216

Adjacent sequences:  A088288 A088289 A088290 * A088292 A088293 A088294

KEYWORD

base,nonn

AUTHOR

Amarnath Murthy, Sep 30 2003

EXTENSIONS

More terms from David Wasserman, Aug 04 2005

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified February 24 00:38 EST 2020. Contains 332195 sequences. (Running on oeis4.)