Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created May 5, 2020 05:36
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/b072e704313d93f0251321623593a04f to your computer and use it in GitHub Desktop.
Save parzibyte/b072e704313d93f0251321623593a04f to your computer and use it in GitHub Desktop.
int matriz[5][5];
int contador = 1;
for (int x = 0; x < 5; x++) {
for (int y = 0; y < 5; y++) {
while (true) {
contador++;
if (esPrimo(contador)) {
matriz[x][y] = contador;
break;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment