Ponder These Palindromic Primes medium.com/mathadam/ponde…
πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/AromaticBovune
πŸ“…︎ Nov 09 2021
🚨︎ report
TIL about Belphegor's Prime. It's the palindromic prime number 1000000000000066600000000000001. Named after Belphegor, Prince of Hell, it has 666 at its heart surrounded by 13 zeros on either side en.wikipedia.org/wiki/Bel…
πŸ‘︎ 2k
πŸ’¬︎
πŸ‘€︎ u/ergotpoisoning
πŸ“…︎ Aug 21 2019
🚨︎ report
TIL of Belphegor's Prime. It's a prime number that is also a palindrome. It's named after the Prince of Hell for ingenious inventions because it contains two sets of 13 zeroes with 666 in the center. The palindromic prime number is 1000000000000066600000000000001. en.wikipedia.org/wiki/Bel…
πŸ‘︎ 34k
πŸ’¬︎
πŸ‘€︎ u/Little_darthy
πŸ“…︎ Apr 28 2017
🚨︎ report
TIL: 1000000000000066600000000000001 is known as Belphegor's prime; a palindromic prime number (a number which reads the same both backwards and forwards and is only divisible by itself and one). The name refers to one of the Seven Princes of Hell. en.wikipedia.org/wiki/Bel…
πŸ‘︎ 449
πŸ’¬︎
πŸ‘€︎ u/BigfootDynamite
πŸ“…︎ Apr 04 2020
🚨︎ report
TIL of Belphegor's prime. A 31-digit, palindromic prime number named after the prince of Hell responsible for ingenious inventions: 1,000,000,000,000,066,600,000,000,000,001. en.wikipedia.org/wiki/Bel…
πŸ‘︎ 5k
πŸ’¬︎
πŸ‘€︎ u/v8xi
πŸ“…︎ Sep 28 2016
🚨︎ report
TIL: about the evil numbers, Belphegor's Prime and Everton Prime , both contain three 6's and are palindromic. *Bonus* The number of the beast being six six six is a mistranslation of the original text which was originally six one six in the ancient greek scriptures. en.wikipedia.org/wiki/Bel…
πŸ‘︎ 44
πŸ’¬︎
πŸ‘€︎ u/mhtxsc
πŸ“…︎ Dec 29 2019
🚨︎ report
Primes are smart, palindromes are pretty, and palindromic primes just take the whole damn cake
πŸ‘︎ 12
πŸ’¬︎
πŸ‘€︎ u/Scarepwn
πŸ“…︎ Jan 27 2020
🚨︎ report
Counting Palprimes (Palindromic primes) | 2

Primes that are your pals!

I'm not a fan of threads that are just listing something of a web page, so I'm not going to leave a source list of palprimes.

GET is at 114232411

πŸ‘︎ 12
πŸ’¬︎
πŸ‘€︎ u/Pookah
πŸ“…︎ May 15 2016
🚨︎ report
The Palindromic Prime Proclamation

We are the most perfect numbers.

We are the most unique numbers around.

We are mathematically pure: Prime.

We are aesthetically pure: Palindrome.

We are the most perfect numbers.

The chosen few.

The elite.

We are Palindromic Primes.

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/Scarepwn
πŸ“…︎ Jan 16 2020
🚨︎ report
TIL of Belphegor's Prime, a palindromic number with 13 zeros, followed by 666, followed by 13 zeros sprott.physics.wisc.edu/p…
πŸ‘︎ 68
πŸ’¬︎
πŸ‘€︎ u/airmigos
πŸ“…︎ Oct 13 2017
🚨︎ report
Negative binary palindromic primes written backwards in Romanian where 0 is 1 and 1 is 0 but skip ahead by 1d6 if the time is a multiple of 6 and if your comment karma is prime name your country's head of state, but you must make an alt under the name 'Kumpletlosar' and then roll a hundred d20s...

..and roll two more d20s, take off the highest (roll of the first d20) and the lowest (second d20), and write that number in hexadecimal and append it to the username, then count in every single non-archived thread on r/counting, revive any thread on the alt and play hexario, then aggregate the current number and your hexario score, then take five digit segments of the number and if it's prime, count in kurdish, if it's divisible by three, count in spanish, if it's divisible by four, count in romanian, if it's divisible by five, count in afrikaans but put the written number followed by 'MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP MAPLE SYRUP' in Google Translate through every language and then to japanese, but then if you get a 00000 or 11111, add d20 to every digit and carry all the numbers over, but then roll 100 d20s, convert the number to base 64, and search it up in youtube, replacing each letter with an O until you get a result, then click on the first one to show up and link it in youtube, remembering to s p a c e o u t a l l t h e l e t t e r s. if your age in seconds is prime p l e a s e s p a c e o u t t h e c o u n t t o o, but if it's composite write 'BANaa anananaaanaANBNAABAANAAnANAAAAAAAAA NANAAbaABAANAABNAANAAAAAAAAAAAAaaaaaaAAAAAAAANAnaanaAaannanabanaaaanannanabanabaaababbaanaanabanabanabanabanaanabanbanaaabanbanbanbBANBAANBANBANBANABNABNAANBANANANANANANANANANNANAANANANAAAAAAAAAAAAAAANNAnbanbANBANABANBANBNAABNABANABABANBANABNANANANAaAaaaaaa...", but alongside all of that, if any of the /r/counting mods have a cakeday then ping u/urbul 1d20 times, if they don't ping them by 2d20 anyways. if at this current time your comment has a prime number of letters append 'i s u c k a s s' to your comment, if the cleveland browns have won this season go look at yourself again, because they can't win a single game, if they haven't won this calendar year like usual, multiply your count by 3d87, take the first hundred digits and put it to the front, and then ping u/urbul (roll of the d20) amount of times, if your FIFA team qualified for the world cup then write 'I AM A SOCCER NERD LA LA LA, FOOTBALL AROUND THe WORLD BA BA BAAAAA, IF

... keep reading on reddit ➑

πŸ‘︎ 3
πŸ’¬︎
πŸ“…︎ Oct 12 2017
🚨︎ report
Belphegor’s prime is the only palindromic prime number, evaluating at one nonillion, sixty-six quadrillion, six hundred trillion, and one.
πŸ‘︎ 12
πŸ’¬︎
πŸ‘€︎ u/Mr_Bagel1
πŸ“…︎ Mar 15 2019
🚨︎ report
A 101 digit palindromic prime number

14084121123253364099143176719968020045833839646156765164693833854002086991767134199046335232112148041

https://paulnotebook.net/home/primes/palindromic-primes-base-ten/

πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/kuiper2018
πŸ“…︎ Aug 08 2018
🚨︎ report
TIL that the largest known palindromic prime number, with 180055 digits, is a tetradic palindrome: it is left-right symmetric, and top-bottom symmetric (composed only of the digits 0,1, and 8). primes.utm.edu/primes/pag…
πŸ‘︎ 11
πŸ’¬︎
πŸ‘€︎ u/doggy_styles
πŸ“…︎ Mar 13 2010
🚨︎ report
No palindromic primes in base 10 between 1000 and 2000 eugene-eeo.github.io/note…
πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/eeojun
πŸ“…︎ Dec 11 2016
🚨︎ report
TIL there is a number known as "Belphegor's Prime," a palindromic prime with thirteen zeros on either side and 666 in the center. Belphegor is one of the Seven Princes of Hell. en.wikipedia.org/wiki/Bel…
πŸ‘︎ 19
πŸ’¬︎
πŸ“…︎ Oct 31 2013
🚨︎ report
Palindromic Primes (for 100 instances); working code, looking for pointers on optimization (speed)

I'm doing Python exercises and am attempting to print the first 100 instances of palindromic prime numbers (eg 383, 90709) - prime numbers which are also palindromes.

The code successfully returns the content requested, however I know the code is far from optimal. It takes ~30 seconds to reach the 100th instance (94049).

First, code:

def reverse(number):
    rev = 0
    while number != 0:
        lastDigit = number % 10
        number //= 10
        rev = (rev * 10) + lastDigit
    return rev

def isPrime(n):
    div = 2
    while div <= n / 2:
        if n % div == 0:    # if True number NOT prime
            return False
        div += 1
    return True


def isPalindrome(num):
    #num = str(num)
    #return True if (num[::-1] == num) else False
    return True if (reverse(num) == num) else False

def main():
    count = 0
    numToCheck = 1
    while count < 100:
        numToCheck += 1
        if  isPrime(numToCheck) and isPalindrome(numToCheck):
            print('{:>5d} '.format(numToCheck), end='')
            if (count + 1) % 10 == 0:
                print()
            count +=1

if __name__ == '__main__':
    main()

Using Python 3.4 on Ubuntu 14 x64.

I know recursion and such can be very helpful in optimizing program speed, however I'm looking for some pointers on why this code is so slow, and from there I'll look into any suggested alternatives.

For example, in this code, which option is faster, the commented option or the uncommented option?

def isPalindrome(num):
    #num = str(num)
    #return True if (num[::-1] == num) else False
    return True if (reverse(num) == num) else False

TL;DR: code above works, needs optimizing

πŸ‘︎ 2
πŸ’¬︎
πŸ“…︎ Nov 27 2014
🚨︎ report
TIL of Belphegor's Prime. It's a prime number that is also a palindrome. It's named after the Prince of Hell for ingenious inventions because it contains two sets of 13 zeroes with 666 in the center. The palindromic prime number is 1000000000000066600000000000001. - todayilearned reddit.com/r/todayilearne…
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/Know_Your_Shit
πŸ“…︎ Apr 29 2017
🚨︎ report
TIL of Belphegor's prime. A 31-digit, palindromic prime number named after the prince of Hell responsible for ingenious inventions: 1,000,000,000,000,066,600,000,000,000,001. - todayilearned reddit.com/r/todayilearne…
πŸ‘︎ 9
πŸ’¬︎
πŸ‘€︎ u/Know_Your_Shit
πŸ“…︎ Sep 29 2016
🚨︎ report
TIL of Belphegor's Prime. It's a prime number that is also a palindrome. It's named after the Prince of Hell for ingenious inventions because it contains two sets of 13 zeroes with 666 in the center. The palindromic prime number is 1000000000000066600000000000001. (x-post from r/todayilearned) np.reddit.com/r/todayilea…
πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/quantumcipher
πŸ“…︎ Apr 29 2017
🚨︎ report
I decided to learn something about the number in my username. It has palindromic prime factors.
πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/KMROLZ1207
πŸ“…︎ Oct 07 2012
🚨︎ report
Saw this registration plate on a car - it's the only known multidigit palindromic prime found by averaging the divisors of a composite number.
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/xhable
πŸ“…︎ Oct 29 2012
🚨︎ report
πŸ‘︎ 7
πŸ’¬︎
πŸ‘€︎ u/charlatan
πŸ“…︎ Jun 29 2009
🚨︎ report
Why Sheldon really loves the number 73 . 73 is the 21st prime number. Its mirror, 37, is the 12th and its mirror, 21, is the product of multiplying 7 and 3. In binary, 73 is a palindrome too and it’s also the year in which Jim Parsons was born! Neat, right?
πŸ‘︎ 22
πŸ’¬︎
πŸ‘€︎ u/yashodeepchikte
πŸ“…︎ Mar 09 2021
🚨︎ report
Fulfillment
πŸ‘︎ 4k
πŸ’¬︎
πŸ‘€︎ u/Einstein7-
πŸ“…︎ Nov 03 2021
🚨︎ report
This is a common occurrence on this subreddit.
πŸ‘︎ 5k
πŸ’¬︎
πŸ‘€︎ u/12_Semitones
πŸ“…︎ Nov 24 2021
🚨︎ report
7/11/17 PALINDROME PRIME DAY THREAD

https://www.amazon.com/primeday/ref=PD17_GW_US_ShopAll

Share links below of some of the coolest fest / camping gear you find!

πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/iFUBAR
πŸ“…︎ Jul 11 2017
🚨︎ report
Eleven Months - Nice Prime Number, Nice Palindrome - Seeing the Bright Side of the Dead Puppy Blues

What a difference eleven months can make.

My family and I have moved back in together. The lawyers are fired and the court case is closed. I put all my kids to bed every night, they wake me up every morning, and every day my wife and I tell each other, "I love you."

Here's the formula: [sobriety] + [intention] - [self-defeating defense mechanisms]. And that's the good news.

The other good news is yes, when something is out of my control and goes sideways, when the bad feelings come on strong, I think, "Beer can give these bad feelings instant death!"

It happened yesterday. The puppy died. My basal ganglia said, "Ten beer ought to do it." I marveled at the thought. I always do. It's like, "Boy, a paper cut! I'll never have another if I just cut off this finger."

Now it's very easy to look at it that way and feel the desire to drink fade out. Now I'd rather sit with the dead puppy blues. That there's the silver lining.

With you I will not drink today.

πŸ‘︎ 9
πŸ’¬︎
πŸ‘€︎ u/0bac
πŸ“…︎ May 16 2017
🚨︎ report
This prime number is also a palindrome.

11

πŸ‘︎ 11
πŸ’¬︎
πŸ‘€︎ u/atheaos
πŸ“…︎ Apr 29 2017
🚨︎ report
My grocery bill became a prime palindrome after adding a food bank donation, $101.01
πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/SciFiStatistician
πŸ“…︎ May 11 2017
🚨︎ report
Inigo Kennedy β€Ž- B1 [A Prime Palindrome] 2004 youtube.com/watch?v=mSjCP…
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/roverberation
πŸ“…︎ Jan 08 2018
🚨︎ report
Inigo Kennedy β€Ž- A3 [A Prime Palindrome] (2004) youtube.com/watch?v=eDs5p…
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/roverberation
πŸ“…︎ Jan 08 2018
🚨︎ report
Inigo Kennedy - Untitled [A Prime Palindrome] [ASY011] (2004) youtube.com/watch?v=jWBXq…
πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/roverberation
πŸ“…︎ Jul 01 2017
🚨︎ report
Blind Girl Here. Give Me Your Best Blind Jokes!

Do your worst!

πŸ‘︎ 5k
πŸ’¬︎
πŸ‘€︎ u/Leckzsluthor
πŸ“…︎ Jan 02 2022
🚨︎ report
TIL 73 is an awesome number: It's the 21st prime number, and its mirror - 37 - is the 12th, whose mirror, 21, is the product of multiplying 7 x 3. In binary, 73 is a palindrome, 1001001, which backwards is 1001001. youtube.com/watch?v=Gg9kS…
πŸ‘︎ 10
πŸ’¬︎
πŸ‘€︎ u/adrenaline786
πŸ“…︎ Dec 17 2010
🚨︎ report
Inigo Kennedy β€Ž- A3 [A Prime Palindrome] (/r/oldtechno) youtube.com/watch?v=eDs5p…
πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/roverberation
πŸ“…︎ Dec 17 2016
🚨︎ report
Dropped my best ever dad joke & no one was around to hear it

For context I'm a Refuse Driver (Garbage man) & today I was on food waste. After I'd tipped I was checking the wagon for any defects when I spotted a lone pea balanced on the lifts.

I said "hey look, an escaPEA"

No one near me but it didn't half make me laugh for a good hour or so!

Edit: I can't believe how much this has blown up. Thank you everyone I've had a blast reading through the replies πŸ˜‚

πŸ‘︎ 19k
πŸ’¬︎
πŸ‘€︎ u/Vegetable-Acadia
πŸ“…︎ Jan 11 2022
🚨︎ report
What starts with a W and ends with a T

It really does, I swear!

πŸ‘︎ 5k
πŸ’¬︎
πŸ‘€︎ u/PsychedeIic_Sheep
πŸ“…︎ Jan 13 2022
🚨︎ report
Inigo Kennedy β€Ž- A3 [A Prime Palindrome] (2004) youtube.com/watch?v=eDs5p…
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/roverberation
πŸ“…︎ Dec 17 2016
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.