D
D
Demigodd2018-03-23 20:12:12
C++ / C#
Demigodd, 2018-03-23 20:12:12

How to find if a number is prime using Recursion?

Let's say a number is given that the user displays, how to find out if the number is prime without using cycles?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Armenian Radio, 2018-03-23
@Demigodd

Recursion is also a cycle. Only hidden from view and making stackoverflow cooler than Spolsky does.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question