我已经写了下面的代码,并且花了很多时间。但它本质上是有问题的,如果有人能指导我使它更有效率,我将万分感激。% A palindromic number reads the same both ways.% two 2-digit numbers is 9009 = 91 99.
% product of two 3-digit numbers.
% 1) Find palin
我一直试图用下面的vb代码来解决项目euler上的问题3,但我不理解为什么它不能工作。有人能给我指个方向吗? Dim p As Int64 = 600851475143 If p Mod i = 0 Then For n As Int64 = 1 To Math.Floor(i ^ 0.5) Step 1
If i Mod n = 0