为什么这段代码只能运行小于10^4的数字?我需要找到所有小于10^8的质数,但这是否显示了arrayindexoutofbound异常?为什么?我知道我们只能创建大小为10^8的数组(如果我错了,请纠正我),但这甚至不能用于10^5。 class Prime public static void main (String[] args) throws java.lang.Exception boolean[] prime = new boolean[100000000];
prime[2]=tr