When I had installed Viber on my phone, I had the same problem. I recommend you to do the steps again. I tried this for a couple of times and in the end the code was sent to me. Also, if you want you can get in touch with the developers at :support@viber.com and ask them for the code.