[ create a new paste ] login | about

Link: http://codepad.org/a1Z799ja    [ raw code | output | fork ]

Python, pasted on Jul 4:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
def test ():

    m =20
    while findNum(m) == False :
             
        m = m + 1
    print 'The number is' +' '+ str(m)


def findNum(n):

   for div in range (2,15):
    
      if n % div != 0:
                 
          return False
                 
   return True

test()  


Output:
1
The number is 360360


Create a new paste based on this one


Comments: