所以基本上我今天需要优化这段代码。它试图找到某个函数为前百万个起始数字生成的最长序列:publicstaticvoidmain(String[]args){intmostLen=0;intmostInt=0;longcurrTime=System.currentTimeMillis();for(intj=2;jmostLen){mostLen=len;mostInt=j;}}System.out.println(System.currentTimeMillis()-currTime);System.out.println("Mostlenis"+mostLen+"for"+mostIn