b+c+a=2017
b+c+bc=2017
(b+1)(c+1)-1=2017
(b+1)(c+1)=2018=1*2018=2*1009 cu 1009 numar prim
b+1=1 c+1=2018 , nu convine, b=0 sibc=0
b+1=2 si c+1=1009 deci b=1, c=1008 si rezulta bc=1008
verificare 1+1008+1008=2017 adevarat
numerele sunt 1, 1008 si 1008