Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created September 22, 2019 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/2649d5934f45e3d5e1c4edc9978e28ee to your computer and use it in GitHub Desktop.
Save parzibyte/2649d5934f45e3d5e1c4edc9978e28ee to your computer and use it in GitHub Desktop.
for (int x = inicio; x <= fin; x++) {
if (esPrimo(x)) {
contador++;
System.out.print(String.valueOf(x) + ",");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment