python 3.x - Input Remainder Prime Number -


i'm trying make program tell user if inputted number either prime number or not. know how format return remainder. have following .py file made, keep getting error "not arguments converted during string formatting":

i = 2 x = input("input proposed prime number now:\n") number = x % print (number) 

@rishav had incorrect formatting, try:
x = int(input(input proposed prime number now:\n"))

if working decimals, can use:
y = float(input("input decimal > "))


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

json - Gson().fromJson(jsonResult, Myobject.class) return values in 0's -