Type: Default 1000ms 256MiB

质数判断

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

定义一个函数isPrime,判断输入的数是否是质数

输入

一个非负整数nn,表示需要判断的数

输出

如果是质数输出yes,否则输出no

7
yes

提示

0<=n<=1090<=n<=10^9

季科_周六下午

Not Claimed
Status
Done
Problem
6
Open Since
2024-3-1 0:00
Deadline
2026-8-14 23:59
Extension
24 hour(s)