//some students also asked it with alert dialog box ! I have done it in a HTML page 100% working best of Luck !_Z triplezero here :) <script type="text/javascript"> var inum, icount=2; var irem; inum = prompt("Enter a number."); if(inum==1) { alert("The no. is not prime"); document.write("The no. is not prime"); exit(0); } if(inum==2) { alert("The no. is prime"); document.write("The no. is prime"); exit(0); } do { irem=inum%icount; if(irem==0) { alert("The no. is not prime"); document.write("the given no is not prime"); exit(0); } icount++; } while(icount<=(inum/2)); alert("The no. is prime"); document.write("the given number is prime"); </script>
The given numbers of 15 and 35 are not prime numbers but they add up to 50
Prime numbers between the given numbers are 23 and 29
Sure, since there are INFINITELY MANY prime numbers, that means you will find prime numbers over any given number.
Numbers divisible by 1 & number itself are called prime numbers. These numbers also have the property to be odd numbers.
shell script for check whether the given no is prime or not??echo "input any number:"read nono=`expr $no`i=`expr 2`while [ $i -lt $no ]doif [ `expr $no % $i` -eq 0];thenecho "$no is not a prime no.."break 2fii=`expr $i +1`doneif [ $i -eq $no ];thenecho "$no is a PRIME no..."fi
The given three numbers are all prime numbers
A number as a product of prime numbers would be "x".
Yes, all of the given numbers are prime numbers.
i think prime numbers
//some students also asked it with alert dialog box ! I have done it in a HTML page 100% working best of Luck !_Z triplezero here :) <script type="text/javascript"> var inum, icount=2; var irem; inum = prompt("Enter a number."); if(inum==1) { alert("The no. is not prime"); document.write("The no. is not prime"); exit(0); } if(inum==2) { alert("The no. is prime"); document.write("The no. is prime"); exit(0); } do { irem=inum%icount; if(irem==0) { alert("The no. is not prime"); document.write("the given no is not prime"); exit(0); } icount++; } while(icount<=(inum/2)); alert("The no. is prime"); document.write("the given number is prime"); </script>
The given numbers of 15 and 35 are not prime numbers but they add up to 50
211 is the only of the given numbers that is prime.
Prime numbers between the given numbers are 23 and 29
Sure, since there are INFINITELY MANY prime numbers, that means you will find prime numbers over any given number.
Numbers divisible by 1 & number itself are called prime numbers. These numbers also have the property to be odd numbers.
A mirror prime.