#include <stdio.h>
int main() {
int p[100];
int z = 0;
for (int x = 100; x > 1; x--) {
for (int n = 2; x % n != 0; n++) {
if (n == x - 1) {
p[z++] = x;
break;
}
}
}
while (z
>= 0) printf("%d ", p
[z
--]); }
//https://pt.stackoverflow.com/q/344054/101
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGludCBwWzEwMF07CiAgICBpbnQgeiA9IDA7CiAgICBmb3IgKGludCB4ID0gMTAwOyB4ID4gMTsgeC0tKSB7CiAgICAgICAgZm9yIChpbnQgbiA9IDI7IHggJSBuICE9IDA7IG4rKykgewogICAgICAgICAgICBpZiAobiA9PSB4IC0gMSkgewogICAgICAgICAgICAgICAgcFt6KytdID0geDsKICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgfQogICAgd2hpbGUgKHogPj0gMCkgcHJpbnRmKCIlZCAiLCBwW3otLV0pOwp9CgovL2h0dHBzOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8zNDQwNTQvMTAx