Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Factor Finder v1.0 (Numbers)
#11
Same thing in C(++)

http://codepad.org/qg9a01bL
Reply
#12
(06-11-2011, 11:35 AM)Michael_ Wrote: Good work. Nice to see I'm not the only one interested in factor finding... Just a few things though:

1. Your using Integers so your already restricted to the number of digits you can use. Use System.Numerics.BigInteger instead.
2. You test every number between 2 and the number entered. When you think about it though, no number bigger than 50 will divide evenly into 100. But more importantly, no two numbers larger than the square root of any number can multiply together to give a number smaller than the number. In your example you should use the Math.Sqrt function. Unfortunately, BigInteger doesn't provide that.
3. When displaying the results, I'd display as equations so that you get
1 * 100
2 * 50
4 * 25
5 * 20
10 * 10

instead of just
1
2
4
5
10
20
25
50
4. If you only want numeric entries, why not use a numeric up down instead of a text box? With numeric up downs you can only enter numbers and even use the up down arrows as well. Except, if your using BigInteger, you'd have to make your own numeric up down as the standard one only returns decimal numbers and, consequently, has a maximum limit.
5. If you start using BigInteger, you'll want a way to cancel factor finding so you'll need to use another thread that listens for the cancel.
6. Finally, if you really want a good, fast factor finder, use a faster language like C++

Here's my attempt at a factor finder:
http://www.mediafire.com/?9fod9ibkjqja0fn

Also, here's a link to a website with factor finding stuff. It even has this cool game on it.
http://factorfinder.tk/

lol most people dont find factors of numbers over 8 digits anyways...

In your application you still have the status strip enabled for resize for some reason, and you can't find the factors of 0, which i've enabled on my app because I was trying to show that 0 is a special number and it doesn't have any factors really. Yours is ok, but I think my list is a little more organized than showing what it can be multiplied by to get the number entered in.
Reply
#13
Really cool, would help me in math class. BUT ITS SUMMER <3
Reply
#14
nice little idea. it is so simple yet it works good.

Nice job
Reply
#15
Thanks Smile I mainly did it out of boredom.
Reply
#16
Seems very cool.Thanks for sharing!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [TUT] MD5 Encrypter & Finder [VB.NET] Fragma 12 7,857 11-25-2012, 10:36 PM
Last Post: ƃu∀ ıʞƃu∀
  Help with VB 2010 (Numbers) Dεlluzion 1 851 06-22-2011, 12:07 PM
Last Post: Coding Support
  [VB.NET/Source] Converte Numbers To Letters : 1000 To One Thousand! ThePrinCe 7 1,843 06-18-2011, 04:09 PM
Last Post: Coding Support
  Compare Version Numbers cipherwar 3 1,425 05-10-2011, 12:02 PM
Last Post: Modestep
  Generate Random Numbers & Letters [ Small Function ] MYPE 22 4,161 04-02-2011, 05:25 PM
Last Post: Pyratepig

Forum Jump:


Users browsing this thread: 1 Guest(s)