#include #include #include #include typedef unsigned long ulong; typedef unsigned int uint; void paint(long nmax) { ulong l,c2,dc,x,y; ulong dim = (ulong)sqrt(nmax); char *picture = calloc(nmax,1); c2 = 1; dc = 0; while (!feof(stdin)) { ulong c0; scanf("%ld ",&l); /* calculate the next square number greater than this prime number. */ while (c2