FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Forum index » Science and Technology » Math » Recreational
primality preserving function?
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
gsax
science forum beginner


Joined: 12 Jul 2005
Posts: 44

PostPosted: Sat Jul 16, 2005 3:44 am    Post subject: primality preserving function? Reply with quote

Hi

I was trying to come up with a function that is primality
preserving..i.e. let the function be f(x)...then I want

f(x) > x
&
f(x) is prime iff x is prime...

I have not been able to produce such a function...

I would like to know , if anyone has a example of such a function..

best regards
Gsax
Back to top
Gottfried Helms
science forum Guru


Joined: 24 Mar 2005
Posts: 301

PostPosted: Fri Jul 29, 2005 11:50 am    Post subject: Re: primality preserving function? Reply with quote

Jim Spriggs schrieb::
Quote:
gsax wrote:

Define formula.

Ok, so I have to define what I mean by a formula..!

well that is a tough one... but let me try to say that the formula
shall consist only of addition/subtraction, multiplication/division,
exponentiation...


Then I think your quest is a hopeless one. At present.


a bit out of seriousness... ;-)

f(x) = {log(x+1)/log(2) iff the result is a positive integer
{ 0 else


Gottfried Helms
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Tue Nov 21, 2017 6:02 am | All times are GMT
Forum index » Science and Technology » Math » Recreational
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Generating function for Mathieu functions cosmicstring@gmail.com Math 1 Fri Jul 21, 2006 8:39 am
No new posts Choice function over finite sets Peter Webb Math 5 Fri Jul 21, 2006 3:28 am
No new posts Function from Taylor series? Nathan Urban Research 1 Thu Jul 20, 2006 12:48 am
No new posts Function not in L_1 {[0,1]}, but satisfies ...? atkrunner@hotmail.com Math 12 Thu Jul 20, 2006 12:46 am
No new posts Primality & Factoring Gerry num-analysis 3 Tue Jul 18, 2006 10:45 am

Copyright © 2004-2005 DeniX Solutions SRL
Other DeniX Solutions sites: Electronics forum |  Medicine forum |  Unix/Linux blog |  Unix/Linux documentation |  Unix/Linux forums  |  send newsletters
 


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0211s ][ Queries: 16 (0.0056s) ][ GZIP on - Debug on ]