Back to Browse

Prime Adam Number in Java | ISC Computer Practical 2020 (Solved)

25.4K views
Feb 8, 2020
30:54

Program link: https://amplifylearning.co.in/prime-adam-integer-isc-2020-computer-practical-question-1/ ISC Class 12 Computer A Prime-Adam integer is a positive integer (without leading zeroes) which is a prime as well as an Adam number. Prime number: A number which has only two factors, i.e. 1 and the number itself. Example: 2, 3, 5, 7, etc. Adam number: The square of a number and the square of its reverse are reverse to each other. Example: If n = 13 and reverse of ‘n’ is 31, then, 132 = 169, and 312 = 961 which is reverse of 169. Thus, 13 is an Adam number. Accept two positive integers m and n, where m is less than n as user input. Display all Prime-Adam integers that are in the range between m and n (both inclusive) and output them along with the frequency, in the format given below: Test your program with the following data and some random data: Example 1: INPUT: m = 5 n = 100 OUTPUT: The Prime-Adam integers are: 11, 13, 31 Frequency of Prime-Adam integers is: 3 Example 2: INPUT: m = 100 n = 200 OUTPUT: The Prime-Adam integers are: 101, 103, 113 Frequency of Prime-Adam integers is: 3 Example 3: INPUT: m = 50 n = 70 OUTPUT: The Prime-Adam integers are: NIL Frequency of Prime-Adam integers is: 0 Example 4: INPUT: m = 700 n = 450 OUTPUT: Invalid Input. ******************************************** Splitting a number video: https://youtu.be/mpgoM31Ox7E All Java Videos : https://www.youtube.com/playlist?list=PLGsRpMr9gXDcT71wdnyI9PjPRC8JT8vsm Array in Java (All videos) : https://www.youtube.com/playlist?list=PLGsRpMr9gXDdmD6lAybN9_uUwMmFCK7Al String in Java (All videos) : https://www.youtube.com/playlist?list=PLGsRpMr9gXDf1T7KqCVJfZcXfFncD6zoA Output Questions in Java : https://www.youtube.com/playlist?list=PLGsRpMr9gXDf2MIYhGT-O7-gC5TXVkRuq ******************************************** You can follow us here, Twitter :- https://twitter.com/alokmaurya95 Instagram :- https://www.instagram.com/alokmaurya95 Facebook :- https://www.facebook.com/AmplifyLearning Check out our website :- amplifylearning.co.in Email us at :- [email protected] ********************************************** Join our youtube family, lets grow together! Subscribe to Amplify Learning https://www.youtube.com/AmplifyLearning #AmplifyLearning #Computer

Download

1 formats

Video Formats

360pmp458.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Prime Adam Number in Java | ISC Computer Practical 2020 (Solved) | NatokHD