[ create a new paste ] login | about

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

Python, pasted on Dec 20:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
is_Prime = 2
x=is_Prime 
counter=0
prime_Counter=0

for value in range(1,10):
    for i in range(1,x):
        if is_Prime%(x-1)==0:
            counter=counter+1    
        x=x-1
    if counter<=1:
        prime_Counter=prime_Counter+1
        print is_Prime
        value=value+1

    is_Prime=is_Prime+1
    x=is_Prime


Output:
1
2


Create a new paste based on this one


Comments: