Post Reply 
What comes next?
10-13-2024, 08:49 PM (This post was last modified: 10-13-2024 09:03 PM by John Keith.)
Post: #13
RE: What comes next?
(10-13-2024 06:33 PM)Geoff Quickfall Wrote:  Any perfect number algorithms out there?

Perfect numbers are easy (sort of). Smile 2^(p-1)*(2^p - 1) is a perfect number if (2^p - 1) is a Mersenne prime. For example, 2^3-1 = 7 is prime and since 2^(3-1) = 4, 28 = 4*7 is a perfect number.
Of course now you need the ISPRIME? function, which limits you to the HP 49 or later unless you want to roll your own ISPRIME?.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
What comes next? - Thomas Klemm - 10-08-2024, 12:26 AM
RE: What comes next? - chromos - 10-08-2024, 05:16 AM
RE: What comes next? - John Keith - 10-08-2024, 12:14 PM
RE: What comes next? - Thomas Klemm - 10-08-2024, 02:31 PM
RE: What comes next? - Thomas Klemm - 10-10-2024, 05:54 AM
RE: What comes next? - Gil - 10-10-2024, 02:55 PM
RE: What comes next? - Thomas Klemm - 10-10-2024, 08:24 PM
RE: What comes next? - Gil - 10-10-2024, 09:17 PM
RE: What comes next? - Thomas Klemm - 10-11-2024, 03:12 AM
RE: What comes next? - C.Ret - 10-13-2024, 12:35 PM
RE: What comes next? - Thomas Klemm - 10-13-2024, 06:08 PM
RE: What comes next? - Geoff Quickfall - 10-13-2024, 06:33 PM
RE: What comes next? - John Keith - 10-13-2024 08:49 PM
RE: What comes next? - Thomas Klemm - 10-14-2024, 02:14 AM
RE: What comes next? - Thomas Klemm - 10-14-2024, 06:21 AM
RE: What comes next? - Gilles - 10-14-2024, 08:35 PM
RE: What comes next? - John Keith - 10-15-2024, 05:39 PM
RE: What comes next? - FLISZT - 10-15-2024, 10:59 PM
RE: What comes next? - Thomas Klemm - 10-15-2024, 03:39 AM
RE: What comes next? - Gil - 10-15-2024, 10:09 AM
RE: What comes next? - Thomas Klemm - 10-15-2024, 11:41 AM
RE: What comes next? - Gil - 10-15-2024, 01:34 PM
RE: What comes next? - Gil - 10-15-2024, 01:53 PM
RE: What comes next? - Gilles - 10-15-2024, 04:08 PM
RE: What comes next? - John Keith - 10-15-2024, 09:09 PM
RE: What comes next? - Thomas Klemm - 10-15-2024, 02:53 PM
RE: What comes next? - Thomas Klemm - 10-15-2024, 03:08 PM
RE: What comes next? - Thomas Klemm - 10-16-2024, 12:56 AM
RE: What comes next? - Thomas Klemm - 10-16-2024, 04:51 AM
RE: What comes next? - Gil - 10-16-2024, 10:14 AM
RE: What comes next? - Thomas Klemm - 10-16-2024, 11:41 AM
RE: What comes next? - Gil - 10-16-2024, 01:17 PM
RE: What comes next? - John Keith - 10-16-2024, 04:54 PM
RE: What comes next? - Gilles - 10-16-2024, 07:45 PM
RE: What comes next? - Thomas Klemm - 10-16-2024, 08:38 PM
RE: What comes next? - Thomas Klemm - 10-17-2024, 05:15 AM
RE: What comes next? - Gil - 10-17-2024, 10:16 AM
RE: What comes next? - Gilles - 10-18-2024, 07:53 PM
RE: What comes next? - Gil - 10-18-2024, 10:49 PM
RE: What comes next? - John Keith - 10-18-2024, 11:57 PM
RE: What comes next? - FLISZT - 10-19-2024, 12:03 AM
RE: What comes next? - Albert Chan - 10-19-2024, 01:29 AM
RE: What comes next? - Thomas Klemm - 10-19-2024, 12:03 AM
RE: What comes next? - Thomas Klemm - 10-19-2024, 12:17 AM
RE: What comes next? - Gil - 10-19-2024, 01:00 AM
RE: What comes next? - Thomas Klemm - 10-19-2024, 08:12 AM
RE: What comes next? - Albert Chan - 10-19-2024, 09:09 PM
RE: What comes next? - Albert Chan - 10-20-2024, 08:44 PM
RE: What comes next? - Gil - 10-19-2024, 06:08 PM
RE: What comes next? - Thomas Klemm - 10-19-2024, 11:25 PM
RE: What comes next? - Thomas Klemm - 10-20-2024, 09:39 PM



User(s) browsing this thread: 3 Guest(s)