当前位置:网站首页>100002nd prime
100002nd prime
2022-06-26 02:29:00 【886emmmm】
public class T2 {
public static void main(String[] args) {
// No prime found count Add one
int count=0;
// Judge j Prime or not
for (int i = 2;; i++) {
int j=2;
while (i%j!=0) {
j++;
}
if (i==j) {
count++;
}
if (count==1002) {
System.out.println(j);
return;
}
}
}
}
边栏推荐
- 微博评论的高性能高可用计算架构
- WPF 窗口居中 & 变更触发机制
- 请指教同花顺软件究竟是什么?在线开户安全么?
- Sqlyog shortcut keys
- vs2015+PCL1.8.1+qt5.12-----(1)
- Which securities company is better and safer to open a mobile stock account?
- Getting to know OpenGL
- Cvpr2022 𞓜 future transformer with long-term action expectation
- Eureka registration information configuration memo
- Redis linked list
猜你喜欢

Qtvtkvs2015 test code

Shell learning record (II)

SQL column value to row value (unpivot)

Depth first traversal based on adjacency table

Implementation of depth first traversal based on adjacency matrix

图的广度优先遍历

A high-frequency interview question from a large factory: tell me about the solution of high and low interface idempotence? Solutions are attached.

How do I fix the iPhone green screen problem? Try these solutions
![[untitled] vsbiji ESP thirty-two](/img/08/c479031c80d4dfdd8a05d530ae30ba.png)
[untitled] vsbiji ESP thirty-two

Redis6.0新特性——ACL(权限控制列表)实现限制用户可执行命令和KEY
随机推荐
树莓派 + AWS IoT 入门实验
Output Lua print to the cocos2d console output window
Small ball bouncing against the wall
WPF 窗口居中 & 变更触发机制
网上开户选哪个证券公司?网上开户是否安全么?
Scala Basics (II): variables and data types
OpenAPI 3.0 规范-食用指南
Magnifier case
Implementation of image binary morphological filtering based on FPGA -- Corrosion swelling
Advanced cross platform application development (23): an article approaching the launch of testlight
为 ServiceCollection 实现装饰器模式
[untitled] vsbiji ESP thirty-two
基于邻接矩阵的深度优先遍历实现
OA process editing
官方零基础入门 Jetpack Compose 的中文课程来啦!
leetcode 300. Longest Increasing Subsequence 最长递增子序列 (中等)
Breadth first traversal of Graphs
Redis-SDS
Cross server SQL connection configuration
第一章:渗透测试的本质信息收集