#include <iostream.h>
main()
{
int a;
cout<<"enter a number : ";
cin>>a;
cout<<endl;
if (a%2-1)
cout<<"it is a Prime number";
else
cout<<"it is not a prime number"
return 0;
}
------------------------------------------
output: enter a number : 30
it is a not a prime number
Its code of estonia
The Express edition of C++ does not require a serial code. It is free.
0-black.2-green
code source de dsr sous omnet++4.1 en .cc
A source code file is a plain-text file containing C++ instructions. The instructions must be compiled and linked to create a native machine code executable.
a prime number is a number that you can plus by one
47 + 7
A prime plus another prime is at the very least going to be an even number since all primes (with the exception of 2) are odd.
No. it's not a prime number when x = 40, 41, 81,82 ...
No. (5x3x17) + 17 =255 + 17 =272 (This is not prime.)
The dialing code +278 does not correspond to a specific country. In international phone numbering, the plus sign (+) is used to represent the international dialing code needed to make a call from one country to another. The number 278 could be a part of a longer phone number, but it does not uniquely identify a country on its own. To determine the country associated with a dialing code, the full number including the country code must be provided.
n = 5.
No. The number 38,482 is composite.
yes
Use the following function to determine if a whole number is prime, including negative values: bool isprime(int p) { if(p<0) p*=(-1); // convert to positive integer if( p<2 ( p>2 && p&1==0 )) return( false ); int max = (int)sqrt((double) p)+1; for( int i=3; i<=max; i+=2 ) if( p%i==0 ) return( false ); return( true ); }
It is: 3 plus 97 = 100
It would always be a natural number.