using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp6 { class Program { static void Main(string[] args) { int j; int primes = 0; for (int i = 1; i < 1000; i++) { for ( j = 2; j < i; j++) { if (i%j==0) { break; } } if (j==i) { primes++; Console.Write($"{i,5}",primes%15 ==0?"\n" :""); } } Console.WriteLine($"소수의 갯수.....