mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Miscellaneous Math

Reply
 
Thread Tools
Old 2017-02-04, 05:46   #45
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

176416 Posts
Default

Quote:
Originally Posted by Godzilla View Post
Right, and for that, we need to develop an appropriate program for the precision, of the digits
It's very easy to find floor(N1), etc. with PARI/GP. You can use localprec as sm88 suggests, or sqrtint as I prefer, or you could just set the precision manually and use floor and sqrt directly. I'll give an example of each:

Code:
\\ Set local precision, then compute normally. Uses 9 guard digits.
N1(N)=localprec(logint(N,10)\2 + 9); floor(2*sqrt(.333 * N))

\\ Only integer operations are used, so precision is not an issue.
N1(N)=sqrtint(333*N\250)

\\ Set precision like \p 100 before calling this version.
\\ If not enough precision is used, an error will be produced.
N1(N)=floor(2*sqrt(.333 * N))
The difficulty is factoring N given these four constants. As far as I can tell all you're proposing is trial division, and a relatively inefficient version of trial division at that.
CRGreathouse is offline   Reply With Quote
Old 2017-02-04, 06:42   #46
Godzilla
 
Godzilla's Avatar
 
May 2016

A316 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post

The difficulty is factoring N given these four constants. As far as I can tell all you're proposing is trial division, and a relatively inefficient version of trial division at that.

For this i have the solution :

this source code written in C language (Super_number) , modifying the code....

http://www.corradodamiano.it/supernu...upernumeri.htm


.
Godzilla is offline   Reply With Quote
Old 2017-02-04, 07:30   #47
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

598810 Posts
Default

At a glance that seems like an inefficient, homegrown bignum library. (I had one of those in college.) But that doesn't really address the core problem. Your factorization algorithm is too slow even at 64 bits where you don't need any bignum library at all.
CRGreathouse is offline   Reply With Quote
Old 2017-02-04, 14:10   #48
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

114018 Posts
Default

Quote:
Originally Posted by Godzilla View Post
For this i have the solution :

this source code written in C language (Super_number) , modifying the code....

http://www.corradodamiano.it/supernu...upernumeri.htm


.
Fossi in te proverei a studiarmi la libreria gmp (gmplib.org).
O il programma yafu, disponibile su sourceforge.
ET_ is offline   Reply With Quote
Old 2017-02-04, 14:24   #49
Godzilla
 
Godzilla's Avatar
 
May 2016

16310 Posts
Default

Quote:
Originally Posted by ET_ View Post
Fossi in te proverei a studiarmi la libreria gmp (gmplib.org).
O il programma yafu, disponibile su sourceforge.

Ho chiesto sul sito iprogrammatori.it proprio oggi e appunto come dici tu bisogna saper programmare un programma ad hoc. Io sinceramente riuscirei solo ad implementare quello postato sul link e non con poche difficoltà.



---EDIT---

and trying with the Turing machine Z program ?? Link files : https://github.com/adamyedidia/parsimony , and Link Video Tutorial : https://www.youtube.com/watch?v=Rt_SfOkk0YM and Link Video Explanation : https://www.youtube.com/watch?v=QtO8EWwggx4


.

Last fiddled with by Godzilla on 2017-02-04 at 15:22
Godzilla is offline   Reply With Quote
Old 2017-02-04, 16:05   #50
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

5·7·139 Posts
Default

Quote:
Originally Posted by Godzilla View Post
Ho chiesto sul sito iprogrammatori.it proprio oggi e appunto come dici tu bisogna saper programmare un programma ad hoc. Io sinceramente riuscirei solo ad implementare quello postato sul link e non con poche difficoltà.



---EDIT---

and trying with the Turing machine Z program ?? Link files : https://github.com/adamyedidia/parsimony , and Link Video Tutorial : https://www.youtube.com/watch?v=Rt_SfOkk0YM and Link Video Explanation : https://www.youtube.com/watch?v=QtO8EWwggx4


.
Il problema, qui, e' la mancanza di specifiche tecniche sul tuo algoritmo: se riesci a descrivere l'algoritmo in funzione di cio' che fai (e del perche' funziona), scrivere un programma è facile.
Considera anche un ripasso della teoria della complessità: ti permetterà di comprendere meglio in che modo "contare" le operazioni necessarie al completamento di un task, e di come l'esecuzione delle operazioni sia legata al tempo da funzioni diverse (logaritmica, lineare, polinomiale o esponenziale).

The problem here is on the lack of technical specifications about your algorithm: once you describe the algorithm in function of what you do (and why the result is correct), programming it will be easy.
Also consider studying some complexity theory: it will explain you better how to count operations and how operations are related to time by a function that can be logarithmic, linear, polynomial or exponential.
ET_ is offline   Reply With Quote
Old 2017-02-05, 05:15   #51
westicles
 
May 2015

716 Posts
Default

Can you guys bring back Silverman? He was great on threads like this.
westicles is offline   Reply With Quote
Old 2017-02-06, 14:10   #52
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
"name field"
Jun 2011
Thailand

41·251 Posts
Default

Quote:
Originally Posted by westicles View Post
Can you guys bring back Silverman? He was great on threads like this.
My feeling too. I don't understand how so many intelligent people waste their time with such an idiot and or troll. At least don blazys was funny.
LaurV is offline   Reply With Quote
Old 2017-02-06, 15:20   #53
kladner
 
kladner's Avatar
 
"Kieren"
Jul 2011
In My Own Galaxy!

2·3·1,693 Posts
Default

This thread most likely would not have made it past the first page, and that page would be blood-spattered.
kladner is offline   Reply With Quote
Old 2017-02-07, 07:58   #54
Godzilla
 
Godzilla's Avatar
 
May 2016

163 Posts
Default

Quote:
Originally Posted by LaurV View Post
My feeling too. I don't understand how so many intelligent people waste their time with such an idiot and or troll. At least don blazys was funny.
I wrote this song is Dark sol3 Feel it ,https://www.youtube.com/watch?v=dHTIX1CxWE4 and listen LaurV... Do you like ?
Godzilla is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Quadratic time factorization" patent mickfrancis Factoring 5 2015-02-17 14:27
Decrease in activity? 10metreh Aliquot Sequences 8 2010-07-15 14:49
New LLT formula hoca Math 7 2007-03-05 17:41
results.txt - Prime95 didn't record time for factorization ixfd64 Software 1 2006-03-30 13:39
Does the LL test:s factorization save or waste CPU time? svempasnake Software 42 2002-10-24 19:27

All times are UTC. The time now is 15:50.


Fri Jul 7 15:50:08 UTC 2023 up 323 days, 13:18, 0 users, load averages: 1.27, 1.26, 1.22

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔