我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Prime Test

Description
Given a big integer number, you are required to find out whether it's a prime number.
Input
The first line contains the number of test cases T (1 <= T <= 20 ), then the following T lines each contains an integer number N (2 <= N < 254).
Output
For each test case, if N is a prime number, output a line containing the word "Prime", otherwise, output a line containing the smallest prime factor of N.
Sample Input
2
5
10
Sample Output
Prime
2

http://blog.csdn.net/yew1eb/article/details/40833991

近期文章

  • Fast Arrangement 线段树
  • C语言问题求解!!!!!
  • 关于mysql数据库的问题
  • oracle 装完了 sqldevployer 登录不上 什么情况 求教
  • android studio failed to create keystore
  • c语言指针问题和函数调用吧
  • Unity prefab的值会自己改变
  • 关于opencv3.1.0对于win10 vs2015
  • c# 语句问题求解(新手),代码如下
  • 但是要跳转的页面并不在servlet下面,就是多了包名,怎么解决呢?
  • Time Zones
  • Above Average
  • spring MVC ,IE11 AJAX文件上传失败
  • Catenyms
  • 编写黑白棋游戏(PC)
  • javaScript nextSibling 一直报错。按理来说是这样写的啊。
  • ASP添加记录程序运行错误
  • 我写的分页代码,还不错吧。
  • 客户机操作系统已禁用cpu
  • 谁有数学函数的计算程序,比如说COS函数是怎么用程序实现的?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华