#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
void n();
int main() {
    int x = 0;
    int *list = malloc(4 * sizeof(int));
    loop:
    x++;
    if (x < (121)) {
        *(list + 0) = x%2;
        *(list + 1) = x%3;
        *(list + 2) = x%5;
        *(list + 3) = x%7;
        if (x == 1) {
            write(1, "->1", 3);
        } else if (*(list + 0) == 0 && x != 2) {
            write(1, "->x", 3);
        } else if (*(list + 1) == 0 && x != 3) {
            write(1, "->x", 3);
        } else if (*(list + 2) == 0 && x != 5) {
            write(1, "->x", 3);
        } else if (*(list + 3) == 0 && x != 7) {
            write(1, "->x", 3);
        } else {
            write(1, "->o", 3);
        }
        n();
        goto loop;
    }
    free(list);
    return 0;
}
void n() {
    write(1, "\n", 1);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: