![]() |
|
|
#1 |
|
"Jason Goatcher"
Mar 2005
3×7×167 Posts |
Is there a program out there, where you can enter a range of numbers, and it will tell you any factors below a million, a billion, or...?
Mind you, these aren't special form numbers, these are sequential numbers. |
|
|
|
|
|
#2 | |
|
"Mike"
Aug 2002
2×23×179 Posts |
Quote:
Code:
for i in `seq 2 10000`; do factor $i; done When we say it ain't fast, we aren't joking. You could factor these by hand faster. Or something. |
|
|
|
|
|
|
#3 |
|
"Mike"
Aug 2002
202A16 Posts |
In case you want to list the primes, here is a very ugly BASH program.
Code:
cat file | cut -d ':' -f 2 | sed 's/^ //' | grep -v ' ' |
|
|
|
|
|
#4 |
|
"Jason Goatcher"
Mar 2005
3×7×167 Posts |
Since there doesn't seem to be a program that fits my needs, I guess I might as well reveal what I wanted to do. I wanted to find the lowest 114-digit number with two brilliant factors. A brilliant number is a number where all the prime factors have the same number of digits. So far, digits 1 through 113 are spoken for.
|
|
|
|
|
|
#5 | |
|
"Mike"
Aug 2002
2×23×179 Posts |
Quote:
|
|
|
|
|
|
|
#6 |
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
769210 Posts |
jasong's original posting contained no hint, misleading or otherwise, about the size of numbers he sought to factor. His mention of "factors below a million, a billion, or..." hints only at size of possible factors, not of the numbers to be factored.
Last fiddled with by cheesehead on 2007-03-19 at 02:53 |
|
|
|
|
|
#7 |
|
"Mike"
Aug 2002
100000001010102 Posts |
Stop making sense. It hurts us so.
The rock and pool Is nice and cool So juicy sweet Our only wish To catch a fish So juicy sweet |
|
|
|
|
|
#8 |
|
"Mike"
Aug 2002
2·23·179 Posts |
Why? Because we were bored.
How long did it take? You don't want to know. Was it pointless? Of course!
|
|
|
|
|
|
#9 | |
|
Bamboozled!
"𒉺𒌌𒇷𒆷ð’€"
May 2003
Down not across
250348 Posts |
Quote:
First off, write a simple program (yes, write it for yourself --- if you can't write it you're not going to succeed in everything else that's needed) which divide all numbers between (say 100^113 and 10^113+1000000) by small primes --- those under 1000 say. Anything which isn't divisible by one of those, you write to a file. There are any number of programming languages which will let you do this first stage. If you're on a MS operating system, UBASIC is as good as any and better than most. Then, once you've found all the numbers of interest without any small factors, get hold of an ECM program and use it to find medium size factors of those. GMP-ECM is the most effecient I know of and it's been ported to many operating systems. Keep using ECM, with ever larger B1 limit, until you get bored. Every time you find a factor of an integer N, remove it from your list. After that phase is over --- it will probably take you only a month or so unless you've serious amount of computation available --- get hold of a NFS factoring package and use it to do each of the remaining candidates in order of size. Sooner or later you will find a brilliant number. Beware: it took me about 5 years to find the smallest 150-brilliant number. Good luck! Paul |
|
|
|
|
|
|
#10 | |
|
"Mike"
Aug 2002
2·23·179 Posts |
Quote:
And he was happy to have it! |
|
|
|
|
|
|
#11 | |
|
Jun 2003
2·7·113 Posts |
Quote:
|
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fastest sieving program? | PawnProver44 | Information & Answers | 40 | 2016-03-11 22:00 |
| Line sieving vs. lattice sieving | JHansen | NFSNET Discussion | 9 | 2010-06-09 19:25 |
| about the program | boooh | Information & Answers | 2 | 2010-03-22 15:22 |
| Old Program | moo | Software | 0 | 2006-06-27 00:19 |
| which program? | drakkar67 | Prime Sierpinski Project | 14 | 2005-11-29 06:25 |