commit inicial

master
250410 2025-11-18 11:43:07 +00:00
commit cb229f5f45
2 changed files with 42 additions and 0 deletions

13
pom.xml Normal file
View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>Exercicio13</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.release>24</maven.compiler.release>
<exec.mainClass>com.mycompany.exercicio13.Exercicio13</exec.mainClass>
</properties>
</project>

View File

@ -0,0 +1,29 @@
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
*/
package com.mycompany.exercicio13;
/**
*
* @author 250410
*/
public class Exercicio13 {
public static void main(String[] args) {
for(int i = 2 ; 1 <= 1000;i++){
boolean primo = true;
for(int j = 2; j < i ; j++){
if(i % j == 0){
primo = false;
break;
}
}
if(primo){
System.out.println("i");
}
}
}
}