Good Evening DCLites !
Today, Problem no. 7 carries a deal for you. There are 2 problems namely Problem 7a and Problem 7b. You can attempt any one of these. Each problem has different weight-age in terms of score.
Problem 7a: Write a code that accepts two integers as input and prints all the prime numbers between (and including) these two numbers.
1. Problem 7a carries 40 marks.
Sample:
Input:
2
12
Output:
2
3
5
7
11
Problem 7b: Your input should be an array.And you have to output all the pairs (each pair comprising two numbers each) of numbers which are co-prime.
1. Problem 7b carries 60 marks.
Sample:
Input:
Array :{2,3,5,8,9}
Today, Problem no. 7 carries a deal for you. There are 2 problems namely Problem 7a and Problem 7b. You can attempt any one of these. Each problem has different weight-age in terms of score.
Problem 7a: Write a code that accepts two integers as input and prints all the prime numbers between (and including) these two numbers.
1. Problem 7a carries 40 marks.
Sample:
Input:
2
12
Output:
2
3
5
7
11
OR
Problem 7b: Your input should be an array.And you have to output all the pairs (each pair comprising two numbers each) of numbers which are co-prime.
1. Problem 7b carries 60 marks.
Sample:
Input:
Array :{2,3,5,8,9}
Output:
Possible Pairs are
2,3
2,5
2,9
3,5
3,8
5,8
5,9
8,9
Rules:
1.Only one submission will be considered.
2.Any participant with more than one submission will not gain any marks.
Possible Pairs are
2,3
2,5
2,9
3,5
3,8
5,8
5,9
8,9
Rules:
1.Only one submission will be considered.
2.Any participant with more than one submission will not gain any marks.
