2009/7/19 fmingu <fmingu@163.com>
 (while_loop(bind(&isprime,_1)==false, ++var(result))(middlevalue);

Try this:

  (while_loop(bind(&A::isprime,_1)==false, ++var(result))(middlevalue);

Roman Perepelitsa.