ياليت لو تساعدوني بحل هالسؤال بالقريب العاجل وساكون ممتن لكم جدا :Lab Assignment #3Chapter 5: Control Structures II (Repetition)1. Write a program that:a. Prompt the user to enter an integer number x greater than 1.b. Use a flag-controlled while loop to check whether the entered number x is prime or not. (a number is said to be prime if it is divisible only by 1 and by itself). Hint1: use a boolean variable initially equal to true.Hint2: continue divising x until either the reminder is zero or you exceed x/2. 2. Modify the program in 1. to exclude the boolean variable and use break instead of it.3. Use a nested loop (for and while) to display all the prime numbers less than 100.