Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

find Carmichael number sage

for n in range(2,7000):
    if not is_prime(n):
        carmichael = True
        for a in range(1,n):
            if Mod(a,n)^n != Mod(a,n):
                carmichael = False
                break
        if carmichael:
            print n 
Comment

PREVIOUS NEXT
Code Example
Python :: how to give multiple option to the user and ask the same question again and again until the user tells one of the options 
Python :: get package share vs FindPackageShare 
Python :: maximo numero de variables dentro de un .def python 
Python :: django templateview 
Python :: tsv to csv python 
Python :: remove 0 values from dataframe 
Python :: print bold and udeline in text python 
Python :: tqdm remove progress bar when done 
Python :: how to strip a list in python 
Python :: python create tuple from input 
Python :: discord bot python on reaction 
Python :: how to save data to text file python 
Python :: t.interval scipy 
Python :: python close input timeout 
Python :: reverse order np array 
Python :: entropy python 
Python :: get home directory in windows python os 
Python :: remove nan particular column pandas 
Python :: Python, pytorch math square 
Python :: text to speech to specific language python 
Python :: plotly not showing in colab 
Python :: python write to text file with new line 
Python :: pandas query variable count 
Python :: python check if string is a float 
Python :: install python 3 on mac 
Python :: how to add scrollbar to listbox in tkinter 
Python :: python for each attribute in object 
Python :: print list vertically in python with loop 
Python :: django form datepicker 
Python :: calcolatrice online 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =