<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Java program to Find whether number is Prime or Not	</title>
	<atom:link href="https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-number-prime/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-number-prime/</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Thu, 20 Aug 2015 15:25:34 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>
		By: NIRAJ		</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-number-prime/comment-page-1/#comment-125409</link>

		<dc:creator><![CDATA[NIRAJ]]></dc:creator>
		<pubDate>Thu, 20 Aug 2015 15:25:34 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1341#comment-125409</guid>

					<description><![CDATA[New way to find prime number,mostly asked aptitudes and interviews  http://www.javaengineeringprograms.com/program-for-prime-number-in-java/]]></description>
			<content:encoded><![CDATA[<p>New way to find prime number,mostly asked aptitudes and interviews  <a href="http://www.javaengineeringprograms.com/program-for-prime-number-in-java/" rel="nofollow ugc">http://www.javaengineeringprograms.com/program-for-prime-number-in-java/</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: noopur mukati		</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-number-prime/comment-page-1/#comment-106790</link>

		<dc:creator><![CDATA[noopur mukati]]></dc:creator>
		<pubDate>Fri, 29 May 2015 17:18:46 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1341#comment-106790</guid>

					<description><![CDATA[if i enter number &quot;1&quot; or &quot;0&quot; this code is giving me that it is prime but it is not y??]]></description>
			<content:encoded><![CDATA[<p>if i enter number &#8220;1&#8221; or &#8220;0&#8221; this code is giving me that it is prime but it is not y??</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: shivangi gupta		</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-number-prime/comment-page-1/#comment-79660</link>

		<dc:creator><![CDATA[shivangi gupta]]></dc:creator>
		<pubDate>Fri, 06 Feb 2015 15:12:48 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1341#comment-79660</guid>

					<description><![CDATA[this web site is very good ...bcoz I do very easily work on  it and thanks alot]]></description>
			<content:encoded><![CDATA[<p>this web site is very good &#8230;bcoz I do very easily work on  it and thanks alot</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Surya Pranav		</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-number-prime/comment-page-1/#comment-53066</link>

		<dc:creator><![CDATA[Surya Pranav]]></dc:creator>
		<pubDate>Thu, 27 Nov 2014 05:02:13 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1341#comment-53066</guid>

					<description><![CDATA[it is enough to check i&#060;Math.sqrt(n)]]></description>
			<content:encoded><![CDATA[<p>it is enough to check i&lt;Math.sqrt(n)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: vikash		</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-number-prime/comment-page-1/#comment-20631</link>

		<dc:creator><![CDATA[vikash]]></dc:creator>
		<pubDate>Sat, 09 Aug 2014 11:59:11 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1341#comment-20631</guid>

					<description><![CDATA[in this prime no. program
no.15,27,21 are showing prime; but they are not;]]></description>
			<content:encoded><![CDATA[<p>in this prime no. program<br />
no.15,27,21 are showing prime; but they are not;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: coopX12		</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-number-prime/comment-page-1/#comment-10424</link>

		<dc:creator><![CDATA[coopX12]]></dc:creator>
		<pubDate>Sun, 02 Feb 2014 06:26:40 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1341#comment-10424</guid>

					<description><![CDATA[It can be done in a much much easy way:

import java.io.*;
class PrimeOrNot
{
    public static void main() throws IOException
    {
        InputStreamReader ir = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(ir);
        System.out.println(&quot;Enter the number&quot;);
        double n = Double.parseDouble(br.readLine()); 
        System.out.println();
        int k, l=0;
        for (k=1; k&#060;=n; k++)
        {
           if(n%k==0)
           {
               l=l+1;
           }
        }
        if(l==2)
        {
            System.out.println();
            System.out.println(n+&#034; is a prime number&#034;);
        }
        else
        {
            System.out.println();
            System.out.println(n+&#034; is NOT a prime number&#034;);
        }
    }
}]]></description>
			<content:encoded><![CDATA[<p>It can be done in a much much easy way:</p>
<p>import java.io.*;<br />
class PrimeOrNot<br />
{<br />
    public static void main() throws IOException<br />
    {<br />
        InputStreamReader ir = new InputStreamReader(System.in);<br />
        BufferedReader br = new BufferedReader(ir);<br />
        System.out.println(&#8220;Enter the number&#8221;);<br />
        double n = Double.parseDouble(br.readLine());<br />
        System.out.println();<br />
        int k, l=0;<br />
        for (k=1; k&lt;=n; k++)<br />
        {<br />
           if(n%k==0)<br />
           {<br />
               l=l+1;<br />
           }<br />
        }<br />
        if(l==2)<br />
        {<br />
            System.out.println();<br />
            System.out.println(n+&quot; is a prime number&quot;);<br />
        }<br />
        else<br />
        {<br />
            System.out.println();<br />
            System.out.println(n+&quot; is NOT a prime number&quot;);<br />
        }<br />
    }<br />
}</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: rehaan		</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-number-prime/comment-page-1/#comment-10306</link>

		<dc:creator><![CDATA[rehaan]]></dc:creator>
		<pubDate>Thu, 21 Nov 2013 08:27:12 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1341#comment-10306</guid>

					<description><![CDATA[thnx 4 nothin coz dis programm is gvn
 &quot;Exception in thread &quot;main&quot; java.lang.ArrayIndexOutOfBoundsException: 0
	at primeno.main(primeno.java:7)
&quot;]]></description>
			<content:encoded><![CDATA[<p>thnx 4 nothin coz dis programm is gvn<br />
 &#8220;Exception in thread &#8220;main&#8221; java.lang.ArrayIndexOutOfBoundsException: 0<br />
	at primeno.main(primeno.java:7)<br />
&#8220;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jyothi		</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-number-prime/comment-page-1/#comment-10256</link>

		<dc:creator><![CDATA[Jyothi]]></dc:creator>
		<pubDate>Fri, 01 Nov 2013 04:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1341#comment-10256</guid>

					<description><![CDATA[hai thank you program and wat happend if we use any other variable other than flag?]]></description>
			<content:encoded><![CDATA[<p>hai thank you program and wat happend if we use any other variable other than flag?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Simple		</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-number-prime/comment-page-1/#comment-10069</link>

		<dc:creator><![CDATA[Simple]]></dc:creator>
		<pubDate>Tue, 03 Sep 2013 11:09:23 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1341#comment-10069</guid>

					<description><![CDATA[Simple and Esay]]></description>
			<content:encoded><![CDATA[<p>Simple and Esay</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jaya prakash		</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-number-prime/comment-page-1/#comment-10021</link>

		<dc:creator><![CDATA[jaya prakash]]></dc:creator>
		<pubDate>Fri, 16 Aug 2013 13:41:21 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1341#comment-10021</guid>

					<description><![CDATA[you name s sexy]]></description>
			<content:encoded><![CDATA[<p>you name s sexy</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
