Well, as this isn't the most challenging challenge, I decided to challenge myself ;)
Here is an answer in the stack-based programming language Factor.
! is an integer even?:even?(int--?)2mod0=;! is an integer a multiple of ten?:multiple-of-ten?(int--?)10mod0=;! helper word (that's a 'function' in factor) for prime? :(prime?)(intm--?)2dup<=[t2nip][2dupmod0=[f2nip][1+(prime?)]if]if;! is an integer prime?:prime?(int--?)2(prime?)! all three tests applied to a single integer, output as an array:all-three(int--seq)2dup[prime?][even?][multiple-of-ten?]tri*3array;5all-three!
! --- Data stack:! { t f f }clear10all-three!
! --- Data stack:! { f t t }
I've never tried anything like this before, so I'd be interested in some feedback if any is available.
Conversely, if anyone would like me to explain what on earth is going on above, please ask and I'll do my best. I really enjoyed writing it.
Full-time friend.
I am interested in Ceramics, Okra, Node.js, GraphQL, Go.
I think pourover coffee is delicious and I roast my own beans at home.
I want to learn as much as I can while I'm here
:) I really enjoyed this.
It was a nice way to start the morning.
I did not know this existed and now I will look forward to this each morning to start my day or to give a break during the day <3
I made the answer earlier and forgot to put it here after I solved it in CodeWars lmao
JavaScript answer, Big O time complexity of O(sqrt(n)) to find if N is a Prime Number.
19 yo student *and* a full-time developer.
Building with Rails currently, exploring new frontiers.
I enjoy functional programming, Linux, FOSS, refactoring and mentoring :)
Well, as this isn't the most challenging challenge, I decided to challenge myself ;)
Here is an answer in the stack-based programming language Factor.
I've never tried anything like this before, so I'd be interested in some feedback if any is available.
Conversely, if anyone would like me to explain what on earth is going on above, please ask and I'll do my best. I really enjoyed writing it.
JavaScript
Live demo on CodePen.
Well done!
Rust Solution!
Went with the naive algorithm for testing for a prime number. Could always improve on that if needed :shruggy:
My test cases for these are also getting thinner and thinner as we go on...
Nice!
Perl solution, using the modulo operator.
:) I really enjoyed this.

It was a nice way to start the morning.
I did not know this existed and now I will look forward to this each morning to start my day or to give a break during the day <3
Go:
I made the answer earlier and forgot to put it here after I solved it in CodeWars lmao
JavaScript answer, Big O time complexity of O(sqrt(n)) to find if N is a Prime Number.
My solution in js
Here is my simple solution with Python:
Ruby 2.6
Elixir: