Computer Science · Python Programming
Examine the given Python program and select its primary purpose from the following options: N = int(input('Enter the number')) for i in range(2, N): if (N % i == 0): print(i)
- 1To display all prime factors of the number N
- 2To calculate the sum of all factors of N
- 3To check whether N is a prime number or not
- 4To display the proper factors of N (excluding 1 and the number N itself)✓
Correct answer
To display the proper factors of N (excluding 1 and the number N itself)
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Python Programming?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Python Programming