PROGRAMA
funcion
primo
(
decl_para
num
)
{
Sentence
var_asig
cd
=
0
;
For
(
decl_para
i
=
1
;
i
<=
num
;
i
++
)
{
if
(
decl_para
num
%
i
===
0
)
Sentence
Var_asig
cd
++
;
}
if
cd
===
2
Sentence
Sent_return
return
true
;
else
Sentence
Sent_return
return
false
;