Advertisement
Guest User

Untitled

a guest
Mar 27th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. package desafios;
  2.  
  3. public class Euler3 {
  4. public static void main(String[] args) {
  5. //Programa que acha os valores que podem dividir com resto 0
  6. int[] vetor = new int[1000];
  7. int x = 600851475;
  8.  
  9. for(int i = 1; i < 10000000; i++) {
  10. if(x%i == 0) {
  11. System.out.println("Valores de y: "+i);
  12. }
  13.  
  14. }
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement