Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Power Lifting Lever Belt
SkullVamp
Updated:
Saturday at 10:32 PM
Ad icon
port.lk Domain for sale
Lankan-Tech
Updated:
Saturday at 3:55 PM
Colombo
Kaduwela - Two Storey House for Sale
dilrasan
Updated:
Jun 11, 2026
Ad icon
Wechat qr verification
Pawan2005
Updated:
Jun 11, 2026
🚀 GOOGLE AI PRO 18 MONTHS ACTIVATION 🚀
sayuru bandara
Updated:
Jun 10, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
C Programmers Help Me!!!!
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="madurax86" data-source="post: 3974650" data-attributes="member: 1293"><p>i did think that 1 is a prime when i was coding <img src="/styles/default/xenforo/smilies/default/P.gif" class="smilie" loading="lazy" alt=":P" title=":P :P" data-shortname=":P" /> it should be it is dividable by 1 and itself which we see as a common thing in all other prime numbers, its just a definition not actual math. I didnt now the definition at the time of coding and i thought of the common factor in all primes and included 1 as a prime too </p><p>The program is only made for integers not real numbers so excluding 2 and even 3 would not result in a wrong output because isprime is assigned true at the beginning and if some number was lesser than 2 then it would do nothing, the while would not execute and the answer will be delivered through a shortcut you can put i>3 also it wont result in wrong outputs it just uses the shortcut for those numbers that we have provided. </p><p>If you are interested on programming, check out the calc i made its in my blog i made it with a friend of mine. <img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /> think of the shortcuts before you start coding that might make ur prog a lot faster and that is what we all need.</p><p>\/</p><p>\/</p><p>\/</p></blockquote><p></p>
[QUOTE="madurax86, post: 3974650, member: 1293"] i did think that 1 is a prime when i was coding :P it should be it is dividable by 1 and itself which we see as a common thing in all other prime numbers, its just a definition not actual math. I didnt now the definition at the time of coding and i thought of the common factor in all primes and included 1 as a prime too The program is only made for integers not real numbers so excluding 2 and even 3 would not result in a wrong output because isprime is assigned true at the beginning and if some number was lesser than 2 then it would do nothing, the while would not execute and the answer will be delivered through a shortcut you can put i>3 also it wont result in wrong outputs it just uses the shortcut for those numbers that we have provided. If you are interested on programming, check out the calc i made its in my blog i made it with a friend of mine. :D think of the shortcuts before you start coding that might make ur prog a lot faster and that is what we all need. \/ \/ \/ [/QUOTE]
Insert quotes…
Verification
Nawa warak dahaya keeyada? (Namaya wadi kireema dahaya)
Post reply
Top
Bottom