From 9a5614ef2c281b984fb0c109018d256fe327a585 Mon Sep 17 00:00:00 2001 From: m3a6es2tz <1690874923@qq.com> Date: Tue, 12 Oct 2021 01:01:04 +0800 Subject: [PATCH] ADD file via upload --- Prime.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Prime.h diff --git a/Prime.h b/Prime.h new file mode 100644 index 0000000..ad073b5 --- /dev/null +++ b/Prime.h @@ -0,0 +1,21 @@ +#include +#include +using namespace std; + +class Prime { + public: + bool Judge(int num) { + if(num<=1) { + cout<