Modified docstring in ntheory/residue_ntheory.py
Modified docstring in ntheory/residue_ntheory.py

Added doctest for
	* n_order
	* is_primitive_root

Added definition of
	* is_primitive_root

And modified docstring in
	* legendre_symbol

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