<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Isn't one of the unsolved millenium prize problems one that includes the ability to find all of the prime numbers? I'm not sure if your program is possible if the input number is large.<div><br></div><div>But to check if a number x is an int, just do this:</div><div><br></div><div>x == int(x)</div><div><br></div><div><br></div><div>Rachel<br><div><br></div><div><br></div><div><br><div><div>On May 31, 2011, at 2:23 PM, Hans Barkei wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I want to make &nbsp;a program that finds all the prime numbers up to a number inputed by the user.<div>I want to know if it is an integer because that will tell me if it is divisible by that number or not.&nbsp;<br clear="all">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <b>&nbsp;&nbsp;<font color="#993399"><span style="font-size:large"><span style="color:rgb(0, 0, 0);font-weight:normal;font-size:small"><b><font color="#993399"><span style="font-size:large"><span style="color:rgb(0, 0, 0);font-weight:normal;font-size:small"><b><font color="#FF6666"><span style="font-size:large">---------</span></font></b></span></span></font></b></span><i>Hans</i></span></font><font color="#FF6666"><span style="font-size:large">-----<span></span><span></span></span></font></b><br>

</div>
_______________________________________________<br>Tutor maillist &nbsp;- &nbsp;<a href="mailto:Tutor@python.org">Tutor@python.org</a><br>To unsubscribe or change subscription options:<br><a href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor</a><br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>R.M. ArceJaeger<br>Author/Publisher, Platypus Press<br><br>Contact: <a href="mailto:arcejaeger@gmail.com">arcejaeger@gmail.com</a><br>Website: <a href="http://rmarcejaeger.com">http://rmarcejaeger.com</a></div></span>
</div>
<br></div></div></body></html>