🧘♂️
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///<remark> | |
/// Этот класс генерирует простые числа, не превышающие заданного | |
/// пользователем порога. В качестве алгоритма используется решето | |
/// Эратосфена. | |
/// Пусть дан массив целых чисел, начинающийся с 2: | |
/// Находим первое невычеркнутое число и вычеркиваем все его | |
/// кратные. Повторяем, пока в массиве не останется кратных. | |
///</remark> | |
using System; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <iomanip> | |
#include <stdlib.h> | |
using namespace std; | |
int main(int argc, char **argv) | |
{ | |
int arraysize; | |
int offset; | |
cin >> arraysize; |
NewerOlder