Skip to content

Instantly share code, notes, and snippets.

View ayato-p's full-sized avatar
💪

ayato-p ayato-p

💪
  • UZABASE, inc.
  • Tokyo, Japan
  • 10:02 (UTC +09:00)
View GitHub Profile
import java.util.Iterator;
public interface Aggregate {
public abstract Iterator<Book> iterator();
}
#! /usr/bin/ruby
def collatz(n)
print n.to_s+"\n"
if n%2 == 0
collatz(n/2)
elsif n != 1
collatz(n*3+1)
end
end
def prime(n)
k=2
c=0
if n==1
print("false","\n")
else
while k<n-1
b=n%k
if b==0
package test;
import java.util.Random;
public class RandomCreate {
private int[] bitArray;
/**
* overLoad