#list approach
def __init__(self, digit):
    self.a=digita
        
def switch(self):
    self.a
#l += [l.pop(0)] moves things to the end of a list
#make a loop!!!
len
val= 20
number =list(str(val))
print number
number +=[number.pop(0)]
print number
number +=[number.pop(0)]
print number
print numbers

#object approach
import math
class Number:
    digita= [range(1,100)]
    def __init__(self, digit):
        self.a=digita
        
    def switch(self):
        self.a
#from random import randint

#val = randint(2, 4000000)
#number = list(str(val))
#print number

#for i in range(len(number) - 1):
 #   number += [number.pop(0)]
  #  print "".join(number)
import math
number = 1000000
sqrt = math.sqrt(number)
prime=[]
i=1
while i <100000:
    is_prime = True
    prime.append(i)
    for digit in range (2,int(math.ceil(math.sqrt(i)) + 1)):
            if i % digit == 0:
                prime.remove(i)
print prime
