begin shift to nim code base
This commit is contained in:
parent
33bcffdc69
commit
4b20f9961b
25 changed files with 625 additions and 303 deletions
|
|
@ -1,6 +1,7 @@
|
|||
# Modulo Test
|
||||
from prbraid.math import *
|
||||
from prbraid.color import *
|
||||
from noether.lib.groups import *
|
||||
from noether.cli.ansi import *
|
||||
from noether.cli._old import *
|
||||
|
||||
import sys
|
||||
|
||||
|
|
@ -18,7 +19,7 @@ def main():
|
|||
n = None
|
||||
strlen_n = None
|
||||
try:
|
||||
uprint(PROMPT, color=Color.Blue, end='')
|
||||
uprint(PROMPT, color=Color.BLUE, end='')
|
||||
n = input()
|
||||
strlen_n = len(n)
|
||||
n = int(n)
|
||||
|
|
@ -43,7 +44,7 @@ def main():
|
|||
|
||||
# find all invertible elements (skipped for now)
|
||||
for a in range(n):
|
||||
orb, ord = orbit(a, n)
|
||||
orb, ord, periodic = cyclic_subgrp(a, n)
|
||||
# check if `a` is a primitive root
|
||||
proot = (ord + 1 == n)
|
||||
proot_c += proot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue