#include <iostream>
bool isPrime(int p)
{ if( p<=1 ( p>2 && p%2==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 );
}
int main()
{ for( int i=1; i<100; i>2?i+=2:++i )if( isPrime(i) )std::cout << i << std::endl;return( 0 );
}
By learning how to program on C+.
The answer is 1100. Simply add the numbers together arithmetically as you would for the problem two plus two. To check your work, a calculator is the best option.
a prime number is a number that you can plus by one
It is: (x+1)(x+4) none of which are prime numbers
NO!!!! Other than '2' all prime numbers are odd numbers. 4,6,10 & 20 are all even so they are not prime numbers.
127 prime numbers in that range. See related link for prime numbers up to 10000. Plus there is a link to download Zip files of prime numbers up to 1 million.
Well, honey, 100 plus 1000 equals 1100. It's basic math, darling. Keep those numbers in line and you'll be just fine.
It would always be a natural number.
19 plus 79
They are 23 plus 7 = 30
11# - 1 = 2309 and 11# + 1 = 2311, both of which are prime.
p7# - 1 = 510509 and p7# + 1 = 510511, neither of which is prime.