[go: up one dir, main page]

login
Revision History for A243734 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
Primes p for which p + 4, p^2 + 4 and p^3 + 4 are primes.
(history; published version)
#26 by Michel Marcus at Sat Sep 21 02:28:32 EDT 2024
STATUS

reviewed

approved

#25 by Joerg Arndt at Sat Sep 21 02:10:19 EDT 2024
STATUS

proposed

reviewed

#24 by Robert C. Lyons at Fri Sep 20 16:27:20 EDT 2024
STATUS

editing

proposed

#23 by Robert C. Lyons at Fri Sep 20 16:27:09 EDT 2024
PROG

while n > 1 and n < 10**6:

print(n, " , " , n1, " , ", n2, " , ", n3end=', ')

STATUS

proposed

editing

#22 by Robert C. Lyons at Fri Sep 20 14:15:42 EDT 2024
STATUS

editing

proposed

Discussion
Fri Sep 20
14:25
Michel Marcus: I think the print should rather be print(n, ", ")  : to get data section
#21 by Robert C. Lyons at Fri Sep 20 14:15:19 EDT 2024
PROG

.... n1=n+4

.... n2=((n**2)+4)

.... n3=((n**3)+4)

.... ##Check if n1, n2 and n3 are also primes.

.... if snt.isprime(n1)== True and snt.isprime(n2)== True and snt.isprime(n2n3)== True:

........ print(n, " , " , n1, " , ", n2, " , ", n3)

.... n=snt.nextprime(n)

STATUS

approved

editing

Discussion
Fri Sep 20
14:15
Robert C. Lyons: Fixed bug in Python program, and replaced leading dots with spaces.
#20 by N. J. A. Sloane at Thu Jun 12 13:25:57 EDT 2014
STATUS

reviewed

approved

#19 by Michel Marcus at Thu Jun 12 10:37:18 EDT 2014
STATUS

proposed

reviewed

#18 by Abhiram R Devesh at Thu Jun 12 06:53:42 EDT 2014
STATUS

editing

proposed

#17 by Abhiram R Devesh at Thu Jun 12 06:52:58 EDT 2014
DATA

3, 7, 103, 277, 487, 967, 4783, 5503, 5923, 8233, 21013, 26317, 27943, 41593, 55213, 78307, 78853, 86197, 89653, 94723, 99013, 123727, 148153, 157177, 166627, 172867, 177883, 179107, 185893, 192883, 194713, 203767, 204517, 223633, 225217, 227593, 236893