# Four Fours

**URL:** <https://www.ruby-forum.com/t/four-fours/77983>\
**Category:** Ruby\
**Created:** [December 2, 2006, 3:24am UTC](https://www.ruby-forum.com/t/four-fours/77983 "2006-12-02T03:24:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hung\_Dao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/7bcc69/32.png) [@Hung\_Dao](https://www.ruby-forum.com/u/Hung_Dao)\
**Post date:** [December 2, 2006, 3:24am UTC](https://www.ruby-forum.com/t/four-fours/77983/1 "2006-12-02T03:24:26Z")

</div>

First , please have a look at this :  
[http://www.carljohansen.co.uk/fourfours/](http://www.carljohansen.co.uk/fourfours/) or google for the terms “four  
fours”  
I do not know C sharp ,so that i cant read the solution in that page ,  
but  
my idea is that I will subtitude every operator + - \* / until I get the  
result in a recursive way , but it will take a long time and CPU usage

Do you know any solution for this in the most rubish way

Thanks

---

<div class="post-metadata">

**Author:** ![Hung\_Dao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/7bcc69/32.png) [@Hung\_Dao](https://www.ruby-forum.com/u/Hung_Dao)\
**Post date:** [December 2, 2006, 6:16am UTC](https://www.ruby-forum.com/t/four-fours/77983/2 "2006-12-02T06:16:46Z")

</div>

On Dec 1, 2006, at 8:24 PM, Hung Dao wrote:

> First , please have a look at this :  
> [Carl's personal website – May the Source be with you | My attempt to blog about coding while somehow avoiding creating yet another coding blog.](http://www.carljohansen.co.uk/fourfours/) or google for the terms “four  
> fours”  
> I do not know C sharp ,so that i cant read the solution in that  
> page , but  
> my idea is that I will subtitude every operator + - \* / until I get  
> the  
> result in a recursive way , but it will take a long time and CPU usage
> 
> Do you know any solution for this in the most rubish way

Some of the techniques used in solving this Ruby Q. could be  
helpful with your problem:

[http://www.rubyquiz.com/quiz7.html](http://www.rubyquiz.com/quiz7.html)

James Edward G. II
