-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path10prime.py
More file actions
40 lines (32 loc) · 1.32 KB
/
10prime.py
File metadata and controls
40 lines (32 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Python program to display all the prime numbers within an interval
# change the values of lower and upper for a different result
lower = 900
upper = 1000
# uncomment the following lines to take input from the user
#lower = int(input("Enter lower range: "))
#upper = int(input("Enter upper range: "))
print("Prime numbers between",lower,"and",upper,"are:")
for num in range(lower,upper + 1):
# prime numbers are greater than 1
if num > 1:
for i in range(2,num):
if (num % i) == 0:
break
else:
print(num)
- > spring starter project
- > dependencies = mysql driver, spring boot devtools, spring data jpa, spring web starter
- > copy from web = tomcat embed jasper, jstl (remove version tag)
- > version tag 2.1.4
- > then application.properties -
spring.prefix=/WEB-INF/
spring.suffix.jsp
spring.datasource.url=jdbc:mysql://localhose:3306/databasename
spring.datasource.username=root
spring.datasource.password=root
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
- > create folder in main name it webapp and inside webapp create another name it WEB-INF
- > create packages
- > in controller @RestController and @RequestMapping("/")
- > Finish Motherfucker now do it on your own way.a