- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

# Write the natural numbers from 2 to 12 . What fraction of them are prime numbers?

To do:

We have to write the natural numbers from 2 to 12 and the fraction of them that are prime numbers.

Solution:

Natural numbers from 2 to 12 are $2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12$

Total number of natural numbers from 2 to 12 $= 11$

Prime numbers from 2 to 12 are $2, 3, 5, 7, 11$

Total number of prime numbers $= 5$

Therefore,

The fraction of the numbers that are prime numbers $= \frac{5}{11}$

- Related Questions & Answers
- Counting prime numbers from 2 upto the number n JavaScript
- Count numbers from range whose prime factors are only 2 and 3 in C++
- Count numbers which are divisible by all the numbers from 2 to 10 in C++
- Sum of first N natural numbers which are divisible by 2 and 7 in C++
- Average of Squares of Natural Numbers?
- Write a program in C++ to remove duplicates from a given array of prime numbers
- Absolute Difference between the Product of Non-Prime numbers and Prime numbers of an Array?
- Absolute Difference between the Sum of Non-Prime numbers and Prime numbers of an Array?
- Java Program to Calculate the Sum of Natural Numbers
- Sum of the first N Prime numbers
- Program to print numbers such that no two consecutive numbers are co-prime and every three consecutive numbers are co-prime Using C++
- Finding the nth digit of natural numbers JavaScript
- Average of Squares of n Natural Numbers?
- PHP program to find the sum of cubes of natural numbers that are odd
- C++ Program to Calculate Sum of Natural Numbers
- Python - Find the number of prime numbers within a given range of numbers

Advertisements