#include <stdio.h>
int main()
{
    int i, j, isPrime;
    printf("Prime numbers between 1 and 100 are: \n");
    for (i = 2; i <= 100; ++i)
    {
        isPrime = 1;
        for (j = 2; j <= i / 2; ++j)
        {
            if (i % j == 0)
            {
                isPrime = 0;
                break;
            }
        }
        if (isPrime)
            printf("%d \n", i);
    }

    return 0;
}

Embed on website

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