Added prime generation, but remains overflow problems in TextWiew