change argument checks from assert to ValueErrors in n_order, is_primitive_root, is_quad_residue and legendre_symbol
change argument checks from assert to ValueErrors in n_order,
is_primitive_root, is_quad_residue and legendre_symbol

Vishluck/sympy,sunny94/temp,Titan-C/sympy,lindsayad/sympy,wanglongqi/sympy,shikil/sympy,atsao72/sympy,chaffra/sympy,Shaswat27/sympy,lindsayad/sympy,MridulS/sympy,lindsayad/sympy,Arafatk/sympy,jbbskinny/sympy,cswiercz/sympy,kaichogami/sympy,MridulS/sympy,kumarkrishna/sympy,sahilshekhawat/sympy,ahhda/sympy,wanglongqi/sympy,Vishluck/sympy,pandeyadarsh/sympy,sahilshekhawat/sympy,bukzor/sympy,rahuldan/sympy,skidzo/sympy,aktech/sympy,jaimahajan1997/sympy,kevalds51/sympy,pernici/sympy,maniteja123/sympy,jaimahajan1997/sympy,hargup/sympy,sunny94/temp,yukoba/sympy,hrashk/sympy,jamesblunt/sympy,abloomston/sympy,kaushik94/sympy,kevalds51/sympy,meghana1995/sympy,cccfran/sympy,oliverlee/sympy,sampadsaha5/sympy,grevutiu-gabriel/sympy,souravsingh/sympy,drufat/sympy,lidavidm/sympy,ahhda/sympy,abhiii5459/sympy,Gadal/sympy,pbrady/sympy,pandeyadarsh/sympy,AunShiLord/sympy,minrk/sympy,Gadal/sympy,ga7g08/sympy,Sumith1896/sympy,Davidjohnwilson/sympy,shikil/sympy,kumarkrishna/sympy,emon10005/sympy,atsao72/sympy,lidavidm/sympy,ga7g08/sympy,jamesblunt/sympy,lidavidm/sympy,postvakje/sympy,Arafatk/sympy,garvitr/sympy,beni55/sympy,farhaanbukhsh/sympy,Designist/sympy,souravsingh/sympy,Designist/sympy,yashsharan/sympy,farhaanbukhsh/sympy,kmacinnis/sympy,dqnykamp/sympy,diofant/diofant,vipulroxx/sympy,garvitr/sympy,AkademieOlympia/sympy,MridulS/sympy,asm666/sympy,drufat/sympy,Shaswat27/sympy,chaffra/sympy,rahuldan/sympy,moble/sympy,beni55/sympy,hrashk/sympy,garvitr/sympy,bukzor/sympy,saurabhjn76/sympy,atreyv/sympy,MechCoder/sympy,madan96/sympy,Gadal/sympy,emon10005/sympy,toolforger/sympy,flacjacket/sympy,madan96/sympy,Davidjohnwilson/sympy,sunny94/temp,Curious72/sympy,sahmed95/sympy,MechCoder/sympy,AkademieOlympia/sympy,kmacinnis/sympy,kumarkrishna/sympy,vipulroxx/sympy,rahuldan/sympy,asm666/sympy,iamutkarshtiwari/sympy,vipulroxx/sympy,ChristinaZografou/sympy,VaibhavAgarwalVA/sympy,wanglongqi/sympy,cswiercz/sympy,madan96/sympy,sampadsaha5/sympy,toolforger/sympy,mcdaniel67/sympy,cswiercz/sympy,meghana1995/sympy,maniteja123/sympy,aktech/sympy,cccfran/sympy,souravsingh/sympy,dqnykamp/sympy,atsao72/sympy,hargup/sympy,jaimahajan1997/sympy,minrk/sympy,pandeyadarsh/sympy,yashsharan/sympy,amitjamadagni/sympy,Sumith1896/sympy,atreyv/sympy,mafiya69/sympy,dqnykamp/sympy,wyom/sympy,skirpichev/omg,Curious72/sympy,cccfran/sympy,mcdaniel67/sympy,postvakje/sympy,yashsharan/sympy,liangjiaxing/sympy,pbrady/sympy,kaichogami/sympy,sahilshekhawat/sympy,mcdaniel67/sympy,yukoba/sympy,Sumith1896/sympy,iamutkarshtiwari/sympy,pbrady/sympy,debugger22/sympy,Titan-C/sympy,kmacinnis/sympy,jbbskinny/sympy,kaichogami/sympy,wyom/sympy,grevutiu-gabriel/sympy,ahhda/sympy,abhiii5459/sympy,shipci/sympy,toolforger/sympy,farhaanbukhsh/sympy,saurabhjn76/sympy,skidzo/sympy,abhiii5459/sympy,Curious72/sympy,grevutiu-gabriel/sympy,AunShiLord/sympy,debugger22/sympy,Titan-C/sympy,beni55/sympy,Mitchkoens/sympy,jbbskinny/sympy,asm666/sympy,meghana1995/sympy,Davidjohnwilson/sympy,jamesblunt/sympy,abloomston/sympy,kaushik94/sympy,jerli/sympy,jerli/sympy,jerli/sympy,Vishluck/sympy,abloomston/sympy,wyom/sympy,maniteja123/sympy,oliverlee/sympy,Mitchkoens/sympy,Arafatk/sympy,mafiya69/sympy,shipci/sympy,VaibhavAgarwalVA/sympy,kevalds51/sympy,ChristinaZografou/sympy,moble/sympy,ChristinaZografou/sympy,drufat/sympy,oliverlee/sympy,VaibhavAgarwalVA/sympy,chaffra/sympy,shikil/sympy,amitjamadagni/sympy,sahmed95/sympy,aktech/sympy,mafiya69/sympy,debugger22/sympy,skidzo/sympy,shipci/sympy,hargup/sympy,srjoglekar246/sympy,MechCoder/sympy,ga7g08/sympy,iamutkarshtiwari/sympy,moble/sympy,Mitchkoens/sympy,kaushik94/sympy,AkademieOlympia/sympy,sampadsaha5/sympy,liangjiaxing/sympy,postvakje/sympy,Designist/sympy,hrashk/sympy,AunShiLord/sympy,atreyv/sympy,liangjiaxing/sympy,sahmed95/sympy,Shaswat27/sympy,saurabhjn76/sympy,yukoba/sympy,bukzor/sympy,emon10005/sympy