+ 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.
12 Answers
+ 23
Please, post your assignments in the Lesson Factory.
+ 7
Linked to...
https://www.sololearn.com/Discuss/1239541/?ref=app
+ 4
Let's say a bachelor ;-)
+ 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. ;-)
+ 2
Thanks for this nice task. My solution:
https://code.sololearn.com/cdHkWm7MS3sf/?ref=app
+ 2
sorry . Nevfy I did not see it.
+ 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...
+ 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