这是一种解决问题的蛮力尝试,但它没有给出正确的答案。程序运行,但没有产生所需的输出。我相信逻辑和程序是正确的。它询问产生100万以下最长Collatz链的数字。{
{ for(long i =3;i<=1000000;i++) len = Euler14.numFucs(i);
System.out.println("Ans"+len+&
:108) at org.apache.batik.gvt.StrokeShapePainter.getPaintedArea(StrokeShapePainter.java:125)
at org.apache.batik.gvt.StrokeShapePainter.getPaintedBounds2D(StrokeShapePainter.javaComposite
1024)) print(dict.get(x))Javaconnection on port 5000got connection on port 5000
Exception in thread "Thread-0" java.lang.NullPointerExceptionat Jserver.run(Jserver.<e