Write a method: that returns the smallest proper divisor of n or, if n is a prime

Question:

Write a method:

image text in transcribed

that returns the smallest proper divisor of n or, if n is a prime number, a value indicating that no result is present.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question
Question Posted: