FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ProjectEuler-Java/Sol7.java at master · JoshP/ProjectEuler-Java · GitHub
JoshP
ProjectEuler-Java
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
ProjectEuler-Java
/
Sol7.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (13 loc) · 395 Bytes
Breadcrumbs
ProjectEuler-Java
/
Sol7.java
Copy path
File metadata and controls
14 lines (13 loc) · 395 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
public
class
Sol7
extends
BaseSolution
{
public
void
runSolution
() {
int
primeCount
=
0
,
i
=
2
,
prime
=
0
;
while
(
primeCount
!=
10001
) {
if
(
Util
.
isPrime
(
i
)) {
primeCount
++;
prime
=
i
;
System
.
out
.
println
(
"prime "
+
primeCount
+
" = "
+
prime
);
}
i
++;
}
System
.
out
.
println
(
prime
);
}
}
Back
|
FazBrowse Home
|
New Git URL