Prime number program in c++

prime number program in c++

Here’s an example program in C++ that checks whether a given number is prime or not: #include <iostream> using namespace std; bool isPrime(int n) {     if (n <= 1) {         return false;     }     for (int i = 2; i*i <= n; i++) {         if (n % i == 0) {             return false;         }     }     return … Read more

Smallest odd prime number

smallest odd prime number

In the realm of mathematics, prime numbers are an intriguing and essential concept. Prime numbers are integers that are only divisible by one and themselves. The smallest prime number is the number 2, which is the only even prime number. The smallest odd prime number, however, is the number 3. In general, odd numbers are … Read more

TNPSC (Tamil Nadu Public Service Commission)

TNPSC

The Tamil Nadu Public Service Commission (TNPSC) is an organization that conducts recruitment examinations for various government jobs in the state of Tamil Nadu. It was established in 1929 and has been functioning ever since to select candidates for various civil services posts. TNPSC is responsible for conducting examinations for various posts such as Group … Read more

Freedom fighters

Freedom fighters

India, one of the oldest civilizations in the world, has a rich history of struggle against colonialism and oppression. From the 16th century to the mid-20th century, India was under British rule. However, the Indian subcontinent did not submit to colonial rule without a fight. Throughout its colonial history, India has produced numerous freedom fighters … Read more

The longest River in India

longest River in India

The Ganges, also known as the Ganga, is the longest river in India and one of the most important rivers in Hinduism. It originates in the Himalayas and flows for a total length of 2,525 kilometers (1,569 miles) before emptying into the Bay of Bengal. The Ganga is considered sacred by Hindus, who believe that … Read more