Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Talk:Prime number
(view source)
Revision as of 18:32, January 10, 2008
283 bytes added
,
18:32, January 10, 2008
no edit summary
Line 20:
Line 20:
[[User:Isaac4given|Isaac4given]] 11:28, 10 January 2008 (EST)
[[User:Isaac4given|Isaac4given]] 11:28, 10 January 2008 (EST)
+
+
I'm surprised that 9 worked. Try.
+
<blockquote><pre>
+
for (s = 2; s <= sqrt(N); ++s) { // less than or equal to catch perfect squares
+
if (N % s == 0) {
+
printf("N is not a prime number.");
+
}
+
}
+
</pre></blockquote>
+
+
[[User:Ga ohoyt|Ga ohoyt]] 13:32, 10 January 2008 (EST)
Ga ohoyt
139
edits
Navigation menu
Personal tools
Log in
Namespaces
Article
talk page
Variants
Views
Read
View source
View history
More
Search
Popular Links
Main Page
Recent changes
New Pages
Random page
Statistics
Edit Console
Special pages
Printable version