BUGFIX: jacobi symbol accepts p=1 now