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

近期文章

  • 在listView.addFooterView中如何实现scroll view的到达底部的提示
  • VS2013+Qt5.8.0程序打包成安装包到底需要添加什么文件?
  • layer 子页面调用父页面JS方法
  • 数据库里的内容不能在JSP页面显示
  • Doom
  • 用stm32驱动了一个烟雾传感器
  • webstorm工程项目使用easyui datagrid
  • C++,io问题,小白求解惑
  • 图片预加载,点击某页加载某页。
  • datagrid怎么与后台交互 后台是有java开发
  • 为什么农行的支付接口出现了记录支付请求错误
  • Netty多线程客户端服务器端通信
  • 前端datatables排序问题
  • 首次ssh整合,启动tomcat时就这样,怎么办求解。。。。
  • roadflow发布问题,流程问题的表单设计发布出错。
  • 基于FPGA的LCD2864显示的万年历
  • Friends
  • 如何通过left join跨表检索sql数据库?
  • C++调用Matlab函数出问题
  • 新手求问这里怎么导入Builder

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华