-->
当前位置:首页 > 题库 > 正文内容

编程题:Prime Number

Luz3年前 (2022-07-16)题库349
Your program reads a natural number in and judge if it is a prime number or not.

### Input Format:

A positive whole number.

### Output Format:

A sentence states the number is prime or composite.

### Sample Input:
in
13


### Sample Output:

out
13 is a prime number.


### Sample Input:
in
12


### Sample Output:

out
12 is not a prime number.












答案:若无答案欢迎评论

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。