The product of six consecutive prime numbers is equal to $\overline{ABBABB}$ where $A$ and $B$ are two distinct positive digits. What is the value of $A+B$ ?

**
Note:
**
$\overline{ABBABB}$
is in base
$10$
.

12
5
7
8
11
9
6
10

**
This section requires Javascript.
**

You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.

$\begin{aligned} \overline{ABBABB} & = 100000A+10000B+1000B+100A+10B+B \\ & = 100100A+11011B \\ & =1001*(100A+11B) \\ & = 7*11*13*(100A+11B) \end{aligned}$

Since this number is equal to the product of six consecutive prime numbers and $2*3*5=30<100A+11B<17*19*23=7429$ , both of the $5$ and $17$ is a divisor of $(100A+11B)$ . The $5*17=85$ has only one multiple which can be expressed in a $\overline{ABB}$ formula, the $255$ , so $A=2$ and $B=5$ , and $255255=3*5*7*11*13*17$ .

Therefore the answer is $2+5=\boxed{7}$ .