Jovian
⭐️
Sign In
In [ ]:
#to list all prime no between range
for num in range(2,10):
    if (num>=1):
        for i in range(2,num):
            if (num%i==0):
                break
            else:
                print(num)
In [ ]:
#to check whether it is prime no or not
num= input("Enter the number between 2 and 100:")
print(type(num))

if (int(num)>1):
    for i in range (2,100):
        if (int(num)%i)==0:
            print("not a prime number")
            break
        else:
            print(" a prime number")
In [ ]:
!pip install jovian -q
In [ ]:
import jovian
In [ ]:
jovian.commit()
In [ ]:
import jovian
In [ ]:
import jovian
In [ ]:
jovian.commit()
In [ ]:
!rm -rf ~/.jovian
In [ ]:
!remove -rf~/.jovian
In [ ]:
!pip uninstall jovian
In [ ]:
!pip install jovian -q
In [3]:
del ~/.jovian/credentials.json
File "<ipython-input-3-94104604aba6>", line 1 del ~/.jovian/credentials.json ^ SyntaxError: invalid syntax
In [4]:
jovian.commit()
--------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-4-7f2017c1a3df> in <module>() ----> 1 jovian.commit() NameError: name 'jovian' is not defined
In [5]:
import jovian 
In [6]:
del ~/.jovian/credentials.json
File "<ipython-input-6-94104604aba6>", line 1 del ~/.jovian/credentials.json ^ SyntaxError: invalid syntax
In [ ]:
jovian.commit()
[jovian] Saving notebook..
In [ ]: