Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- int main(void)
- {
- int licznik = 0;
- int l = 2;
- for (l; l <= 50; l++)
- {
- for (int i = 1; i <= l; i++)
- {
- if (l % i == 0)
- {
- licznik = licznik + 1;
- }
- }
- if (licznik <= 2)
- {
- printf("%d\n", l);
- }
- licznik = 0;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement