The blog of CSDN in 楊天福
package com.zhidi.loop;
public class Zhishuhe {
public static void main(String[] args){
int sum=0;
int a;
int b;
for(a=1;a<=100;a++){
for(b=2;b<=a;b++){
if(a%b==0&&a!=b){
break;
}else if(a%b==0 &&a==b){
sum+=a;
}
}
}
System.out.println(sum);
}
}
相關推薦
The blog of CSDN in 楊天福
package com.zhidi.loop; public class Zhishuhe { public static void main(String[] args){
【the Blog of Dale無雙】Some recordings in the field of software engineering
Welcome to my blog. For those who are interested in my projects, you can visit My GitHub 專業:軟體工程 態度: 平生用功,但求問心無愧爾。 我寫部落格的目的:1)把所學知
the Blog of Dale無雙(Some recordings in the field of software engineering)
Welcome to my blog. For those who are interested in my projects, you can visit My GitHub 專業:軟體工程 態度: 平生用功,但求問心無愧爾。 我寫部落格的目的:1)把所學知
How to Get the Length of File in C
code class clas body position pre -c set == How to get length of file in C //=== int fileLen(FILE *fp) { int nRet = -1; int nPosB
Animation Physics and The Realization Of Animation In Browsers
relative absolute single present important begin resources enc multiple Animation Physics Background With the development of computer sci
[Tensorflow] 統計模型的引數數量 How to calculate the amount of parameters in my model?
import logging logging.basicConfig(level=logging.INFO, format='%(message)s', filemode='w', filename=config.logger) def _params_usage(): total
A Possible Solution t 3g modem o the Mystery of the Origin of Matter in the Universe
www.inhandnetworks.com New NASA photo of the “Pillars of Creation” from the Hubble Telescope. A new study from UCLA physicists offers a possib
Researchers Study the Effects of Psilocybin in Magic Mu emark certified shrooms on Brain Activity
www.inhandnetworks.com A recent study shows how psilocybin, the active ingredient in magic mushrooms, effects brain activity. 30 healthy volunte
The Application of Stack in Expression Calculation
代寫Expression Calculation作業、代做C/C++程式設計作業、C/C++語言作業除錯、代寫infix作業The Final Laboratory Reports1. TitleThe Application of Stack in Expression Calculation2. Intr
the blog of alunSemiconductor
本文把程式設計師所需掌握的關鍵知識總結為三大類19個關鍵概念,然後給出了掌握每個關鍵概念所需的入門書籍,必讀書籍,以及延伸閱讀。旨在成為最好最全面的程式設計師必讀書單。 前言 Reading makes a full man; conference a ready
the Blog of Dale無雙
前言 發現Python中有很多值得研究的問題,但是時間不太多。所以就在這裡簡要記錄一下。 1 python的編碼解碼 Since Python 3.0, strings are stored as Unicode, i.e. each character
Increasing the adoption of ethics in artificial intelligence
The idea of artificial intelligence, first coined in 1956, has dominated popular film (think the Matrix Trilogy or Stanley Kubrick's 2001: A Space Odyssey)
What’s driving the growth of ICOs in 2018?
Despite the massive drop in the value of cryptocurrencies in 2018, investment into ICOs has soared. This may reflect a return to the fundamental purpose fo
Expert Explains the Potential of AI in Drug Discovery, Healthcare
R&D Magazine: Can you explain a little about your background? Clark: I come from a diverse background. I have a PhD in chemistry, then I worked for a d
The culprit of superconductivity in cuprates
The first high-temperature superconductor was discovered in 1986, in ceramic compounds of copper and oxygen known as cuprates. These materials could reach
Looking forward: the role of Telemedicine in Eye Care?
Looking forward: the role of Telemedicine in Eye Care?Radiology was the first branch of healthcare to embrace telemedicine. Yet today remote access to heal
The Rise of Chatbots in Payments in 2018
There has been a massive surge in the popularity of using instant messengers to provide online customer support and chatbot work. Even in the banking indus
The Cost Of JavaScript In 2018
We’ve recently added support for flagging high “JavaScript boot-up time” to Lighthouse. This audit highlights scripts which might be spending a long time p
The Drivers of Change in the Automotive Technologies
The power of the Software Defined Vehicle is on everyone’s mind. What is not obvious is how this revolution of technology will disrupt the automotive ecosy
資料中聚類個數的確定(Determining the number of clusters in a data set)
本文主要討論聚類中聚類個數的確定問題。 1. K的作用 Intuitively then, the optimal choice of k will strike a balance between maximum compression of the data using a single clu