Skip to content

Instantly share code, notes, and snippets.

View yuichirokato's full-sized avatar

yuichiro_takahashi yuichirokato

View GitHub Profile
github "Alamofire/Alamofire" ~> 3.0
github "mgrebenets/SwiftScriptRunner"
github "SwiftBond/Bond"
github "tid-kijyun/Kanna" >= 0.1.0
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 ;