Challenge Primes without numbers | Sololearn: Learn to code for FREE!
+ 5

Challenge Primes without numbers

Don't get confused by the title :P The challenge is to check if a user input is a prime or even print a list of primes without using any numbers in your code. (for example int a = 0 is forbidden, however a = Console.ReadLine() isn't as you are not using a number directly) I don't think this challenge is too hard but I still would like to see some unique ways to work around the problem :D Happy coding ^^

16th Oct 2017, 11:39 PM
Nick
Nick - avatar
3 ответов
+ 4
one(with requires Two) liner in ruby https://code.sololearn.com/cwhg6I6J0n77/#rb
17th Oct 2017, 12:35 AM
Chrizzhigh
Chrizzhigh - avatar
17th Oct 2017, 1:29 AM
Oma Falk
Oma Falk - avatar
+ 2
c# pretty straight forward code, but at least it has no bugs (I think) https://code.sololearn.com/cOlXJY7243WU/#cs
16th Dec 2017, 12:17 AM
MuzzRK
MuzzRK - avatar