Created
May 5, 2020 05:36
-
-
Save parzibyte/b072e704313d93f0251321623593a04f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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