Skip to content

Commit

Permalink
frontend bugs fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankush committed Oct 9, 2024
1 parent 30af926 commit e3b6a1f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion base/templates/base/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
margin: 0;
font-family: Arial, sans-serif;
font-size: 16px;
line-height: 1.25;
line-height: 1.15;
}

header {
Expand Down
4 changes: 1 addition & 3 deletions file.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
0
1
2
6 is not a prime number.
22 changes: 19 additions & 3 deletions test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
d = ['']
d = ['13']
def input():
try:
out = d[0]
Expand All @@ -8,5 +8,21 @@ def input():

return out

for i in range(3):
print(i)
# Check if number is Prime or Not
# Take input from the user
n = int(input())

# Check if the number is prime
prime = True
if n <= 1:
prime = False
else:
for i in range(2, int(n**0.5) + 1):
if n % i == 0:
prime = False
break

if (prime):
print(f"{n} is a prime number.")
else:
print(f"{n} is not a prime number.")

0 comments on commit e3b6a1f

Please sign in to comment.