For which primes P is the following true?

  • Thread starter Wiz14
  • Start date
  • Tags
    Primes
In summary: The prime p has to be the smaller of a pair of twin primes. That thins out the candidates considerably.This is only necessary but not sufficient: for example take p=29 and x = 3: 29 + 6 = 35 not prime.
  • #1
Wiz14
20
0
For which primes "P" is the following true?

the function f(x) = x(x - 1) + p gives you a prime number for all x < p
I've tried this with 5,11, and 41, but it doesn't work for 7 since 5(5-1) + 7 is not a prime.
Btw, this isn't homework or anything, just a curiosity.
 
Physics news on Phys.org
  • #2


Wiz14 said:
the function f(x) = x(x - 1) + p gives you a prime number for all x < p
I've tried this with 5,11, and 41, but it doesn't work for 7 since 5(5-1) + 7 is not a prime.
Btw, this isn't homework or anything, just a curiosity.
See Euler's Lucky Numbers http://oeis.org/A014556
 
  • #3


ramsey2879 said:
See Euler's Lucky Numbers http://oeis.org/A014556

I guess my question is, why does it work for the numbers that it works for? Is there a way to know whether it will work for a certain prime without checking for every value below it? Are the numbers in that link the only "Lucky Numbers?"
 
  • #4


Wiz14 said:
I guess my question is, why does it work for the numbers that it works for? Is there a way to know whether it will work for a certain prime without checking for every value below it? Are the numbers in that link the only "Lucky Numbers?"
There is a link within the page for a more complete listing of "Lucky Numbers"; however, I doubt that it is a complete listing very much. As to why certain primes are or are not lucky numbers, there is not much to say other than the fact that lucky numbers greater than 3 must be primes of the form 6*n -1 since otherwise 3|(1*2 + P). That being noted, I doubt that there is a simple test other than checking all non-negative numbers < P. You will find that many properties of primes are not easily explained in a simple manner.
 
Last edited:
  • #5


The prime p has to be the smaller of a pair of twin primes. That thins out the candidates considerably.
 
  • #6


mathsman1963 said:
The prime p has to be the smaller of a pair of twin primes. That thins out the candidates considerably.

This is only necessary but not sufficient: for example take p=29 and x = 3: 29 + 6 = 35 not prime

More unseful information at http://mathworld.wolfram.com/LuckyNumberofEuler.html
 
  • #7


mathsman1963 said:
The prime p has to be the smaller of a pair of twin primes. That thins out the candidates considerably.

All twin primes are of the form 6n - 1 and 6n + 1. The smaller is always 6n - 1, which is what ramsey said.
 
  • #8


With ARIBAS it is very simple to get a function 'IsLuckyNumber(n)', returning
the number of primes in f(i) = i(i - 1) + n with i a natural number < n
Code:
==> IsLuckyNumber(41).
IsLuckyNumber: i = 1 ; is prime 41
IsLuckyNumber: i = 2 ; is prime 43
IsLuckyNumber: i = 3 ; is prime 47
IsLuckyNumber: i = 4 ; is prime 53
IsLuckyNumber: i = 5 ; is prime 61
IsLuckyNumber: i = 6 ; is prime 71
IsLuckyNumber: i = 7 ; is prime 83
IsLuckyNumber: i = 8 ; is prime 97
IsLuckyNumber: i = 9 ; is prime 113
IsLuckyNumber: i = 10 ; is prime 131
IsLuckyNumber: i = 11 ; is prime 151
IsLuckyNumber: i = 12 ; is prime 173
IsLuckyNumber: i = 13 ; is prime 197
IsLuckyNumber: i = 14 ; is prime 223
IsLuckyNumber: i = 15 ; is prime 251
IsLuckyNumber: i = 16 ; is prime 281
IsLuckyNumber: i = 17 ; is prime 313
IsLuckyNumber: i = 18 ; is prime 347
IsLuckyNumber: i = 19 ; is prime 383
IsLuckyNumber: i = 20 ; is prime 421
IsLuckyNumber: i = 21 ; is prime 461
IsLuckyNumber: i = 22 ; is prime 503
IsLuckyNumber: i = 23 ; is prime 547
IsLuckyNumber: i = 24 ; is prime 593
IsLuckyNumber: i = 25 ; is prime 641
IsLuckyNumber: i = 26 ; is prime 691
IsLuckyNumber: i = 27 ; is prime 743
IsLuckyNumber: i = 28 ; is prime 797
IsLuckyNumber: i = 29 ; is prime 853
IsLuckyNumber: i = 30 ; is prime 911
IsLuckyNumber: i = 31 ; is prime 971
IsLuckyNumber: i = 32 ; is prime 1033
IsLuckyNumber: i = 33 ; is prime 1097
IsLuckyNumber: i = 34 ; is prime 1163
IsLuckyNumber: i = 35 ; is prime 1231
IsLuckyNumber: i = 36 ; is prime 1301
IsLuckyNumber: i = 37 ; is prime 1373
IsLuckyNumber: i = 38 ; is prime 1447
IsLuckyNumber: i = 39 ; is prime 1523
IsLuckyNumber: i = 40 ; is prime 1601
-: 40

==>
 
  • #9


Wiz14 said:
All twin primes are of the form 6n - 1 and 6n + 1. The smaller is always 6n - 1, which is what ramsey said.

3 and 5? 3 satisfies the OP's condition. For that matter so does 2.
 
  • #10


FYI, Euler's Lucky Numbers map to the last 6 Heegner #s by the rule 4p - 1. So, a good place to begin to learn more about them is by learning more about the Heegner #'s.

http://en.wikipedia.org/wiki/Heegner_number
 

Related to For which primes P is the following true?

1. What is the definition of primes?

Primes are positive integers that are divisible only by 1 and themselves.

2. How do you determine if a number is prime or not?

One way to determine if a number is prime is to check if it is divisible by any number other than 1 and itself. If it is not divisible by any other number, then it is a prime number.

3. Why is it important to study primes?

Primes are important in many areas of mathematics, including number theory, cryptography, and computer science. They also have real-world applications in fields such as finance and engineering.

4. What is the significance of the statement "For which primes P is the following true?"

This statement is often used in mathematical proofs or problems to specify a certain condition or restriction. In this case, it is asking for all prime numbers that satisfy a given condition.

5. Can you give an example of a problem that involves this statement?

Sure, here's an example: "For which primes P is the following statement true: P^2 + 6P + 5 is also a prime number?" In this case, we would need to find all prime numbers that, when squared, have a sum of 6 and a constant term of 5 to satisfy the condition.

Similar threads

  • Linear and Abstract Algebra
Replies
1
Views
844
  • Calculus and Beyond Homework Help
Replies
1
Views
2K
  • Precalculus Mathematics Homework Help
Replies
16
Views
2K
  • Linear and Abstract Algebra
Replies
4
Views
2K
  • Linear and Abstract Algebra
Replies
2
Views
1K
  • Precalculus Mathematics Homework Help
Replies
14
Views
1K
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
3K
  • Precalculus Mathematics Homework Help
Replies
9
Views
1K
  • Precalculus Mathematics Homework Help
Replies
17
Views
2K
Back
Top