我爱占星网 我爱占星网
首页
编程
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

近期文章

  • c++ string类问题segmentation fault
  • 分布式系统与nginx配置
  • 关于anaconda创建新的python环境遇到的问题
  • nodemanager和resourceManager日志报错
  • Python爬虫爬取豆瓣电影
  • Identifying Legal Pascal Real Constants
  • eclipse提供的birt报表能不能和Vue整合?怎么整合?
  • python的一个小问题。。
  • 第一行代码中酷欧天气项目的疑问
  • spring测试连接mysql时报错
  • c数据类型 大小与取值
  • 【急、高分】spring boot 集成quartz 自动注入bean为null
  • VS2013的操作问题。。。
  • Lord of the Ring
  • 对spark的图计算模块GraphX中的vertexRDD求并集怎么算,有没
  • Hibernate4.3启动时在一个地方卡住40多秒
  • c++ 怎么从键盘上获取方向键
  • C# chart控件绘制折线图,如何获取X轴第一个点和最后一个点
  • MFC中的一个问题。和C++相关吧
  • android获取图片的内存地址

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华