Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
eba1900
Prime func
poojithinavolu Jun 27, 2024
550a055
Python program to Print Primes b/w 1-n
Jun 27, 2024
60388f7
prime
poojithinavolu Jun 27, 2024
d13c63b
new change
saisiddeswar Jun 27, 2024
ce25881
NEW FILE PRIME
Jun 27, 2024
0fba0db
prime (1 to 100)
Jun 27, 2024
9fc9297
NEW FILE
Jun 27, 2024
9b05ffa
Create sai.py
sairajesh919 Jun 27, 2024
7a3473a
updated
aletidavid Jun 27, 2024
ce70d68
manoj
manoj791 Jun 27, 2024
5d1e18e
python
Bipingundala Jun 27, 2024
86a56b9
Merge branch 'team/ombheembush' of https://github.com/SuneelPM/gitwor…
saisiddeswar Jun 27, 2024
9bf0b29
Merge branch 'team/ombheembush' of https://github.com/SuneelPM/gitwor…
aletidavid Jun 27, 2024
a0060e7
prime(1to100)
Jun 27, 2024
7f2abb1
Merge branch 'team/ombheembush' of https://github.com/SuneelPM/gitwor…
saisiddeswar Jun 27, 2024
f21b953
raju.py
Y22CD006 Jun 27, 2024
81a2fdd
Merge branch 'team/ombheembush' of https://github.com/SuneelPM/gitwor…
Jun 27, 2024
97d1fb3
Merge branch 'main' of https://github.com/SuneelPM/gitworkshop-batch2…
manoj791 Jun 27, 2024
de902fc
Merge branch 'team/ombheembush' of https://github.com/SuneelPM/gitwor…
Jun 27, 2024
bc8eb5d
Merge branch 'team/ombheembush' of https://github.com/SuneelPM/gitwor…
Bipingundala Jun 27, 2024
025acab
Merge branch 'team/ombheembush' of https://github.com/SuneelPM/gitwor…
Bipingundala Jun 27, 2024
19260ad
Merge branch 'team/ombheembush' of https://github.com/SuneelPM/gitwor…
aletidavid Jun 27, 2024
c80aae8
Merge branch 'team/ombheembush' of https://github.com/SuneelPM/gitwor…
saisiddeswar Jun 27, 2024
000a6ac
Delete raju.py
Y22CD006 Jun 27, 2024
d20e3f3
new
saisiddeswar Jun 27, 2024
648eff5
Merge branch 'team/ombheembush' of https://github.com/SuneelPM/gitwor…
saisiddeswar Jun 27, 2024
1d5097c
Create raju.py
Y22CD006 Jun 27, 2024
a86136e
Merge branch 'team/ombheembush' of https://github.com/SuneelPM/gitwor…
manoj791 Jun 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added file2.py
Empty file.
1 change: 1 addition & 0 deletions gitworkshop-batch2
Submodule gitworkshop-batch2 added at 5f2070
5 changes: 5 additions & 0 deletions gitworkshop.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
def prime():
for num in range(1, 101):
if all(num % i != 0 for i in range(2, num)):
print(num)
prime()
11 changes: 11 additions & 0 deletions manoj1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
def prime(num):
if num < 2:
return False
for i in range(2, int(num**0.5) + 1):
if num % i == 0:
return False
return True

for number in range(1, 101):
if prime(number):
print(number, end=' ')
10 changes: 10 additions & 0 deletions poojith.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
def isprime(n):
for i in range(2,n//2):
if n%i==0:
return False
return True


for i in range(1,101):
if isprime(i):
print(i)
10 changes: 10 additions & 0 deletions prime1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
n=int(input("enter a number "))
def priime(n):
for i in range(2,101):
for j in range(2,101):
if i%j==0:
print(i)
else:
print("not prime")

priime(n)
6 changes: 6 additions & 0 deletions raju.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
for i in range(2,101):
for j in range(2,101):
if i%j == 0:
break
if i==j:
print(i)
19 changes: 19 additions & 0 deletions sai.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
def prime(x, y):
prime_list = []
for i in range(x, y):
if i == 0 or i == 1:
continue
else:
for j in range(2, int(i/2)+1):
if i % j == 0:
break
else:
prime_list.append(i)
return prime_list
starting_range = 2
ending_range = 7
lst = prime(starting_range, ending_range)
if len(lst) == 0:
print("There are no prime numbers in this range")
else:
print("The prime numbers in this range are: ", lst)
Empty file added sathvik.py
Empty file.
23 changes: 23 additions & 0 deletions siddu.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#include<bits/stdc++.h>
using namespace std;
int prime(int n)
{
if(n<0)
return 0;
for(int i=2;i<n;i++)
{
if(n%i==0)
return 0;
}
return 1;
}
int main()
{
for(int i=1;i<=100;i++)
{
if(prime(i))
cout<<i<<" " ;
}


}
Empty file added siddu.py
Empty file.
14 changes: 14 additions & 0 deletions ve.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
def is_prime(num):
if num < 2:
return False
for i in range(2, int(num**0.5) + 1):
if num % i == 0:
return False
return True
prime_numbers = []
for num in range(1, 101):
if is_prime(num):
prime_numbers.append(num)
print("Prime numbers between 1 and 100:")
print(prime_numbers)