From 16b78133e09a00c3947f56c612cfbf5aa13ed6d6 Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Thu, 13 Oct 2022 15:21:15 +0400 Subject: =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=BE?= =?UTF-8?q?=20=D0=BF=D1=80=D0=B5=D0=B4=D0=BB=D0=BE=D0=B6=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=B2=D0=B2=D0=BE=D0=B4=D0=B0=20=D0=B2=20=D1=87=D0=B5?= =?UTF-8?q?=D1=82=D0=B2=D1=91=D1=80=D1=82=D0=BE=D0=B9=20=D0=BB=D0=B0=D0=B1?= =?UTF-8?q?=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lab4/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lab4/src/main.rs b/lab4/src/main.rs index d46480a..7609af9 100644 --- a/lab4/src/main.rs +++ b/lab4/src/main.rs @@ -3,6 +3,7 @@ use std::io; fn main() { + println!("Введите положительное число:"); let mut p = String::new(); let stdin = io::stdin(); match stdin.read_line(&mut p) { @@ -21,7 +22,7 @@ fn main() { }; let mut is_prime = true; - for i in 1..4 { + for i in 1..30 { let a: Integer = p.clone() - i; if a <= 0 { break; -- cgit v1.2.3