Write a program using DIV(J, K) which reads a positive integer N> 10 and determines whether or not N is a prime number. (Hint: N | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Write a program using DIV(J, K) which reads a positive integer N> 10 and determines whether or not N is a prime number. (Hint: N

Please help

30th Jan 2022, 6:36 PM
deepak patel
2 Answers
+ 2
Is this not the question you are trying to answer? Write a function subprogram DIV(J , K) , where J and K are positive integers such that DIV(J , K) = 1 if J divides K but otherwise DIV(J , K) = 0. (For example, DIV(3 , 15)=1 but DIV(3,16)=0) Tell me more about what you are looking for?
30th Jan 2022, 8:05 PM
William Owens
William Owens - avatar
0
No
30th Jan 2022, 8:16 PM
deepak patel