Additional challenges for learning Swift 3.0

Hello. I’ve found out that that there are not enough challenges in the book to solid my knowledge in swift. Can anyone advice some resources with additional swift’t challenges?

Here are two challenges for you.

  1. Write a function that computes the square root of a given number. (Note that you are not allowed to use the square-root function in the math library.)

  2. Write a function that prints the largest even prime number.

  3. Write a function that computes the value of the expression x2 - y2 without taking squares.

If you do these, you will be given more challenges.

I would head over to and try solving as many of those with what you’ve learned with Swift.

I add

Another useful site is Lots of great exercises for many different languages including Swift.