General
Es primo
¿Es #n un número primo?
Recuerda que un número primo es aquel número distinto de 1 cuyos únicos divisores son el 1 y el mismo número.
1
1
0
0
true
false
«session lang=¨es¨ version=¨2.0¨»«library closed=¨false¨»«mtext style=¨color:#ffc800¨ xml:lang=¨es¨»variables«/mtext»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»repeat«/csymbol»«mrow»«mi»n«/mi»«mo»=«/mo»«mi»aleatorio«/mi»«mo»(«/mo»«mn»50«/mn»«mo»,«/mo»«mn»500«/mn»«mo»)«/mo»«/mrow»«mrow»«mi»resto«/mi»«mo»(«/mo»«mi»n«/mi»«mo»,«/mo»«mn»2«/mn»«mo»)«/mo»«mo»*«/mo»«mi»resto«/mi»«mo»(«/mo»«mi»n«/mi»«mo»,«/mo»«mn»3«/mn»«mo»)«/mo»«mo»*«/mo»«mi»resto«/mi»«mo»(«/mo»«mi»n«/mi»«mo»,«/mo»«mn»5«/mn»«mo»)«/mo»«mo»*«/mo»«mi»resto«/mi»«mo»(«/mo»«mi»n«/mi»«mo»,«/mo»«mn»7«/mn»«mo»)«/mo»«mo»§ne;«/mo»«mn»0«/mn»«/mrow»«/apply»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»sol«/mi»«mo»=«/mo»«mi»primo«/mi»«mo»?«/mo»«mo»(«/mo»«mi»n«/mi»«mo»)«/mo»«/math»«/input»«/command»«/group»«/library»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»n«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»491«/mn»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»sol«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»cierto«/mi»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»factorizar«/mi»«mo»(«/mo»«mi»n«/mi»«mo»)«/mo»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»491«/mn»«/math»«/output»«/command»«/group»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨/»«/input»«/command»«/group»«/session»#sol