https://github.com/codersales/ai-java-chat-and-copilot-test
AI-java-Chat-and-Copilot-test
https://github.com/codersales/ai-java-chat-and-copilot-test
java philosophy-of-research research
Last synced: 11 months ago
JSON representation
AI-java-Chat-and-Copilot-test
- Host: GitHub
- URL: https://github.com/codersales/ai-java-chat-and-copilot-test
- Owner: CoderSales
- License: mit
- Created: 2023-12-07T23:36:06.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-07T23:50:39.000Z (about 2 years ago)
- Last Synced: 2024-12-30T23:32:56.069Z (about 1 year ago)
- Topics: java, philosophy-of-research, research
- Language: Java
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AI-java-Chat-and-Copilot-test
AI-java-Chat-and-Copilot-test
## Copied code from ChatGPT3.5
```java
public class PrimeChecker {
private int number;
public PrimeChecker(int number) {
this.number = number;
}
public boolean isPrime() {
if (number <= 1) {
return false;
}
for (int i = 2; i <= Math.sqrt(number); i++) {
if (number % i == 0) {
return false;
}
}
return true;
}
public static void main(String[] args) {
int numToCheck = 17; // Replace with the number you want to check
PrimeChecker primeChecker = new PrimeChecker(numToCheck);
if (primeChecker.isPrime()) {
System.out.println(numToCheck + " is prime.");
} else {
System.out.println(numToCheck + " is not prime.");
}
}
}
```
## time update
04:10 remaining
after running PrimeChecker.java
## begin revision at 03:15 remaining
## note ahead of time
## during code generation time
time saved using Chat and GitHub CoPilot
## installed
GitHub Copilot
and
simultaneous
auto
install of
GitHub Copilot Chat
done by
01:20 remaining
## revision at 00:50 remaining
this.number = number;
PrimeChecker primeChecker = new PrimeChecker(numToCheck);
## + 2 minutes at 23:49 hours
so end at 23:47 hours
so start at 23:32 hours