+ 7

[ASSIGNMENT] Check whether a number is circular prime or not.

Check whether a number is circular prime or not. We are given a number n. Our task is to check whether the number is circular prime or not. For a circular prime number we have to check prime for all the circular numbers of n. for a n-digit number there are n numbers of permutations ). eg.123--circular numbers are 123,231&312. If all these numbers are prime then it is called circular prime. eg. 113--as 113,131,311 are all primes so 113 is a circular prime.

20th May 2018, 7:45 AM
Neelarghya Kundu
Neelarghya Kundu - avatar
12 Answers
+ 23
Please, post your assignments in the Lesson Factory.
20th May 2018, 8:45 AM
Igor Makarsky
Igor Makarsky - avatar
20th May 2018, 11:43 AM
Zoetic_Zeel
Zoetic_Zeel - avatar
+ 5
VcC Nevfy You guys have done almost PhD in topic of "Prime Numbers" recently, haven't you..?..😀😀😉👌👌
20th May 2018, 12:33 PM
Zoetic_Zeel
Zoetic_Zeel - avatar
+ 4
Let's say a bachelor ;-)
20th May 2018, 12:57 PM
VcC
VcC - avatar
+ 3
Hmmm... and why it looks like I have already seen it somewhere... ;-P Ok, here is my solution: https://code.sololearn.com/c822zCD51vLJ/?ref=app And there are 5 others under this link: https://www.sololearn.com/Discuss/1239541/?ref=app @Louis @lemmi and any others: your solutions are also welcomed in the topic under the link above. ;-)
20th May 2018, 5:45 PM
Nevfy
21st May 2018, 3:01 PM
Neelarghya Kundu
Neelarghya Kundu - avatar
+ 2
Thanks for this nice task. My solution: https://code.sololearn.com/cdHkWm7MS3sf/?ref=app
20th May 2018, 10:48 AM
lemmi
lemmi - avatar
+ 2
sorry . Nevfy I did not see it.
21st May 2018, 5:22 AM
Neelarghya Kundu
Neelarghya Kundu - avatar
+ 2
@Neelarghya Kundu Don't worry, I'm fine with it. The more people will see it, the more people will participate and offer different interesting solutions. Anyway almost nobody looks for "old" challenges to solve in Q&A section...
21st May 2018, 5:29 AM
Nevfy
+ 2
Got it 👍 . Check out my try in Python :- And thanks Neelarghya Kundu for the challenge really good warm up for the weekend.😃. https://code.sololearn.com/c07X397amVbH/?ref=app
2nd Jun 2018, 8:18 AM
Salman
Salman - avatar