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

Largest prime factor 素数的分解

Problem Description
Everybody knows any number can be combined by the prime number.
Now, your task is telling me what position of the largest prime factor.
The position of prime 2 is 1, prime 3 is 2, and prime 5 is 3, etc.
Specially, LPF(1) = 0.

Input
Each line will contain one integer n(0 < n < 1000000).

Output
Output the LPF(n).

Sample Input
1
2
3
4
5

Sample Output
0
1
2
1
3

近期文章

  • 代码编译没错误,但到了板子上不运行啊
  • selenium爬虫无法访问部分网站
  • idea启动失败问题
  • 计算乘积用循环的方法这么理解对吗(语言-java)
  • echarts柱状图和折线图改变X轴颜色
  • 修改jupyter notebook默认保存路径时,无法打开jupyter_notebook_config.py 文件
  • switch语句无法运行
  • 求解答js问题,想秃头也找不到解决办法T_T
  • circumgyrate the string 解题思路
  • 5个字段模糊查询,想添加一个全局搜索这五个字段要怎么写
  • unity动画无法添加事件
  • 现在vscode运行不出来,为什么呀?
  • c++的重写程序一个简单的小项目该怎c++函数的重写一个简单的项目该怎么去完成
  • zz's Mysterious Present
  • js点击选中效果,其他行不影响
  • mysql 排序索引字段的优化
  • 32单片机串口通信问题
  • 基于C++编译,有没有能够通过设置目标曲线,自动调参算法,得到目标曲线的算法
  • 子字符串,The most binary substring
  • 关于python初级的练习问,分别需用到lambda函数、list.append

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华