is also a prime number. For example, both 13 and its reversal 31 are prime, so 13 is an emirp. In contrast,
☑Kizspy. me 23 is a prime, but its reversal-32-is not prime, so 23 is not an emirp.
Notes:
-Do not edit given statements in the main function.
- You can create new functions if you see they are necessary.
Sample input and output:
Please enter the size of the array: 5
a[0]=10
a[1]=13
a[2]=7
a[3]=25
a[4]=23
Output for marking:
OUTPUT:
1
Please enter the size of the array: 5
a[0]=10
a[1]=15
a[2]=15
a[3]=25
a[4]=48
Output for marking:
OUTPUT:
0
Question 4:
(2 marks)
The given Q4.cpp file contains statements about input and output data of objects from the Laptop class.
You should write the statements to complete the Laptop class as described below:
Zoom
+ 100%
Lanton
Where
Activate Windows
Go to Settings to activate Windows.
Close