Re: What is the Result from Invoking this Halt Function?
From: David C. Ullrich (ullrich_at_math.okstate.edu)
Date: 07/31/04
- Next message: David C. Ullrich: "Re: What is the Result from Invoking this Halt Function?"
- Previous message: David C. Ullrich: "Re: Yet another Attempt at Disproving the Halting Problem"
- In reply to: Peter Olcott: "Re: What is the Result from Invoking this Halt Function?"
- Next in thread: >parr\(*>: "Re: What is the Result from Invoking this Halt Function?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 31 Jul 2004 07:07:56 -0500
On Fri, 30 Jul 2004 21:47:17 GMT, "Peter Olcott"
<olcott@worldnet.att.net> wrote words which said
nothing at all about the following question, which
we repeat for his convenience:
meanwhile, why don't you answer Peter's question.
correcting a typo and clarifying the block structure,
does the following code halt or not?
possible.perfect = 3
loop: sum=0
for all numbers k from 1 .. sqrt(possible.perfect)
if k divides possible.perfect, sum = sum+k
next k
if sum=possible.perfect then print possible.perfect "is an odd perfect
number"; halt. endif
possible.perfect=possible.perfect+2
goto loop
************************
David C. Ullrich
sorry about the inelegant formatting - typing
one-handed for a few weeks...
- Next message: David C. Ullrich: "Re: What is the Result from Invoking this Halt Function?"
- Previous message: David C. Ullrich: "Re: Yet another Attempt at Disproving the Halting Problem"
- In reply to: Peter Olcott: "Re: What is the Result from Invoking this Halt Function?"
- Next in thread: >parr\(*>: "Re: What is the Result from Invoking this Halt Function?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]