Consider an algorithm which essentially counts to a certain number then halts.
Counting Algorithm C
Given any $n \in \Bbb N$
Step 1
$x_0=0$
Step 2
$\text{if} (x_n =n)\ \text{then}(\text{halt}) $
Step 3
$x_n=x_{n-1}+1$
Step 4
$\text{go to Step 2}$
Forgive my poor notation of an algorithm as I am not familiar that much with methods and notations used in computational science and I did not want to simply use c style syntax or something.
Now I ask the question for which the question is to be asked about; "Is there a quicker way to compute C then the obvious?"
Now my questions are these. Does this question even make sense? If in some way it does, is this in a very informal way (I hope you can understand what I mean) analogous to asking if there is a way to determine if a given natural number is prime; that is quicker then the obvious way?
1. halt. (Incidentally, many optimzingCcompilers might perform such an optimization) – Hagen von Eitzen Jun 24 '15 at 13:10