# Unpredictable u's

Number Theory Level 4

Let $$u_n$$ be a sequence, such that $$u_1=2,u_2=3$$ and

$$u_{n+2}=u_{n+1}u_{n}-u_{n+1}-u_n+2$$

Find the sum of all distinct primes in this sequence.

×