Se consideră algoritmul ceFace(nr), unde nr este un număr natural (100 ≤ nr ≤ 2*109 la momentul apelului).
Algorithm testProprietateNr(n):
If n ≤ 1 then
return False
EndIf
d ← 2
While d * d ≤ n execute
If n MOD d = 0 then
return False
EndIf
d ← d + 1
EndWhile
return True
EndAlgorithm
Algorithm ceFace(nr):
s ← 0
c1 ← nr MOD 10
nr ← nr DIV 10
c2 ← nr MOD 10
nr ← nr DIV 10
While nr ≠ 0 execute
c3 ← nr MOD 10
t ← c3 * 100 + c2 * 10 + c1
If testProprietateNr(t) then
s ← s + c1 + c2 + c3
EndIf
c1 ← c2
c2 ← c3
nr ← nr DIV 10
EndWhile
return s
EndAlgorithmPrecizați valoarea pe care o returnează algoritmul ceFace(nr) pentru nr = 1271211312?
Alegeți toate variantele corecte.