编辑代码

# coding:utf-8
#JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。 
print("Hello JSRUN!   \n\n         - from Python .")
num = int(input("请输入一个三位数:"))
#num = 233
gewei = num%10

shiwei= (num/10)%10

baiwei = num/100

print("该数的百位是:",int(baiwei))
print("该数的十位是:",int(shiwei))
print("该数的个位是:",int(gewei))
if(num%2==0):
    print("%d是偶数"%num)
else:
    print("%d是奇数"%num)

if num > 1:
   # 查看因子
   for i in range(2,num):
       if (num % i) == 0:
          # print(num,"不是质数")
           break
   else:
       print(num,"也是质数")