I think you should totally go for it, my math skills are quite lacking as well. Hell, i was assigned high school algebra when i took my college placement tests. Besides, the more the merrier :DI thought about trying the Project Euler thing when you brought it up.
On the one hand, I like the programming part. If I didn't, then I put a lot of effort into getting a degree in something I hate (and got near-straight A's in it, too... bloody interface design :evil: )... :lol:
On the other hand, I don't do well with numbers (something that might baffle other programmers, and my math teachers in college). It took me several tries to finally understand algebra (high school, two math courses in the Navy, then it finally clicked in college... where I tutored math, too... :? ), and arithmetic can get me in trouble (9 * 7 != 16... I know it, I feel it, but it's even money if I actually write it correctly).
I'll ponder some more... I'm leaning towards "go for it," though. ;)
OrkHammer007
[QUOTE="HardQuor"]Yeah, that's way over my head :( I'll just consider my solution a good compromise between conciseness and elegance :PGabuEx
Well, it's actually not too conceptually difficult. I probably just explained it badly. There are two main concepts that need to be understood with what I was talking about:
1. First, there are prime numbers (numbers which are divisible by only 1 and itself), and there are composite numbers (numbers which are divisible by more than that). Any composite number can be represented as a product of prime numbers (for example, 12 = 2 * 2 * 3).
2. Second, to say that x is divisible by y is to say that all prime factors of y are also prime factors of x. For example, 12 is divisible by 4 because 12 = 2 * 2 * 3, while 4 = 2 * 2 - all prime factors of 4 are also prime factors of 12.
See if what I said makes any more sense in light of those two things (or tell me if the above also makes no sense).
No, i think you explained prime factors just fine (which i'm thankful for, as the next problem for Project Euler deals directly with figuring them out for a ridiculously large number). What is over my head is conceptualizing it all in code. Although, i'm not really dedicating a lot of thought to it, admittedly :P
Log in to comment