Recent content by killerkhangg
-
K
Hi i with this perfect number program Please help
I know i see what he wrote. I switch the variables to long but how would you put it into code. I'm guessing Math.squrt.2n-1? i missed class for 1 week due to intestine problems so i didn't get these notes. Sorry- killerkhangg
- Post #7
- Forum: Engineering and Comp Sci Homework Help
-
K
Hi i with this perfect number program Please help
This program that i wrote only find the first 4 perfect number and i am suppose to find the first 6 perfect number. And my teacher expect me to put those two equations above on the program which i really don't know how that works. Thank you very much. It would really help if you guys can tell me- killerkhangg
- Post #5
- Forum: Engineering and Comp Sci Homework Help
-
K
Hi i with this perfect number program Please help
sorry that's what my teacher gave me. i was really confuse on how to write a program putting that equation on- killerkhangg
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
K
Hi i with this perfect number program Please help
Perfect Number Program Java Methods A perfect number is a positive integer equal to the sum of all its divisors (including 1 but excluding the number itself). For example: 28 = 1 + 2 + 4 + 7 + 14 According to Euclid, any solution to (2n-1) that results in a prime number will indicate that...- killerkhangg
- Thread
- Hi Program
- Replies: 7
- Forum: Engineering and Comp Sci Homework Help