sábado, 10 de dezembro de 2016

Prime number or not?

Today I wrote a code that says if a number is a prime number or not. The coolest exercise assignment for today, and yet not the hardest.


Much harder for me was to figure out a way to tell if a certain number has a couple of equal adjacent digits inside of it, or not. For example: 1223 = yes; 1234 = no.
 

Nenhum comentário:

Postar um comentário