This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github "Alamofire/Alamofire" ~> 3.0 | |
github "mgrebenets/SwiftScriptRunner" | |
github "SwiftBond/Bond" | |
github "tid-kijyun/Kanna" >= 0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PrimeNumber { | |
public static void main(String[] args) { | |
int num = 10000 ; | |
boolean isPrime = false ; | |
int count = 2 ; | |
for (int i = 5; i <= num; i += 2) { | |
for (int j = 2; j * j <= i; j++) { | |
if (i % j == 0) { | |
isPrime = false ; |