Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 468 results for
project-euler
- Page 1
Project Euler 54
Programming
Software Development
13 Years Ago
by invisiblemaa
I'm trying to solve Problem #54 of
Project
Euler
, which is basically evaluating poker hands. My program currently outputs … of this. It works with all the examples on the
Project
Euler
site and I just can't get my head around…
Project Euler problem
Programming
Software Development
17 Years Ago
by SurviBee
Doing
Project
Euler
problem 3. Don't know why code not working. [code] #…
Project Euler Problem 17
Programming
Web Development
15 Years Ago
by O71v13r
… to solve on the [URL="http://projecteuler.net"]
Project
Euler
[/URL] site. The problem is as follows: If the numbers…
Project Euler Problem
Programming
Software Development
14 Years Ago
by networkZombie
Ok so I have been trying to do
project
euler
problem 1 which finding the sum of all the multiples …
Project Euler - Problem 17 Help
Programming
Software Development
14 Years Ago
by thebigbroski
I was working on Problem 17 on
Project
Euler
: [url]http://projecteuler.net/index.php?section=problems&id=…
Project Euler Problem 3? Beginner
Programming
Software Development
14 Years Ago
by blee93
I am doing
Project
Euler
Problem 3, but I seem to get stuck. I have …
Project Euler 3
Programming
Software Development
12 Years Ago
by hust921
I am trying to solve a problem 3 on
project
euler
. For thoes who donĀ“t know the site, here is …
Project Euler 18 Unknown problem
Programming
Software Development
11 Years Ago
by bnn678
… find the problem with my code. Yes, this is a
project
Euler
problem. Any tips or suggestions help. My code works by…
Project Euler - 04
Programming
Software Development
10 Years Ago
by Petcheco
Hello, friends. I did the fourth challenge on
Project
Euler
and I'd like to know what I can do …
Re: Project Euler - 04
Programming
Software Development
6 Years Ago
by memson
Have a look here for a shorter solution https://www.xarg.org/puzzle/
project
-
euler
/problem-4/
Re: Project Euler Problem
Programming
Software Development
6 Years Ago
by memson
But you don't need to loop at all, as you can see here https://www.xarg.org/puzzle/
project
-
euler
/problem-1/
Reasonably fast solution of Project Euler problem 61 (under 3 ms)
Programming
Software Development
14 Years Ago
by TrustyTony
Here is my celebration post for entering level 3 in
Project
Euler
. Again I left in my debug prints. I am in … action. It is not doing half bad actually: J:\test\
Project
Euler
>\python27\python -m timeit "import euler61" "…
Problem 8 :: Project Euler (Solution)
Programming
Software Development
13 Years Ago
by lxXTaCoXxl
…!) So basically; I got bored and found a website called
Project
Euler
. It has a bunch of "mathematical" problems to…
Python - Project euler question #19 Wrong answer
Programming
Software Development
11 Years Ago
by Bhavya scripted
hi i recently found an interesting problem(#19) on the
project
euler
website - projecteuler.net The real answer is 171 and i …
Re: Project Euler - 05
Programming
Software Development
10 Years Ago
by Petcheco
Well said, mate. I'm programming as a hobby and it's been quite fun. The
Project
Euler
is a remarkable tool; I'll be sure to make the most of it and improve my skills.
Euler help function
Programming
Software Development
16 Years Ago
by luke77
Hi guys, I'm working my way through the
Project
Euler
problems to help teach myself programming, so I'm looking …
Re: Problem 8 :: Project Euler (Solution)
Programming
Software Development
13 Years Ago
by hericles
come on man, don't put up your
euler
solutions. Other people that can't solve it are just going to copy your answer which just weakens the site. You can see other people's solutions on the site once you've solved a particular problem anyway. I've noticed the Python solutions on the site are always blisteringly fast.
Re: Problem 8 :: Project Euler (Solution)
Programming
Software Development
13 Years Ago
by Momerath
> don't put up your
euler
solutions The solutions are all over the internet. There is even a site that just has the answers (no code) so you can just type them in.
Re: Project Euler 54
Programming
Software Development
13 Years Ago
by TrustyTony
Are you checking for straights 1 2 3 4 5 and 10 J Q K A How your code separates hands with same highest card but different second highest? Please use **Code** from editor, do not link to code out of the site. I have lost my Python code for the task in hard disc crash, but I recoded it today. I could check your list of line numbers of wins …
Re: Project Euler 54
Programming
Software Development
13 Years Ago
by TrustyTony
For me your code crashes for sort as you have not #include <algorithm> After putting it in, your code gives me 'memory can not be read' error in CodeBlocks, maybe uninstantiated pointer?
Re: Project Euler problem
Programming
Software Development
17 Years Ago
by Duoas
Your limit is an [B]int[/B], which is too small to hold the number you have put in it. (Your compiler should have complained about this.) Try using a [B]long long[/B] or somesuch. Start [B]runningcount[/B] at 2, not one. Your [B]primeChecker()[/B] function is fine, but it will be slow. Hope this helps.
Re: Project Euler Problem 17
Programming
Web Development
15 Years Ago
by O71v13r
[QUOTE=O71v13r;1020925] I really don't know where i have made a mistake but i know from a friend that the good result should be: 21124 If someone can find my mistake, it would be usefull for me. Thanks in advance, Olivier[/QUOTE] Ok i solved it myself. In the function "threedigit" i forgot do define what the function …
Re: Project Euler Problem 17
Programming
Web Development
15 Years Ago
by somedude3488
I got bored and wrote code to echo out the actual string. Only took 10 minutes. I ended up getting 21224 not 21124. Maybe I overlooked something. [code] $ones = array( 1 => 'One', 2 => 'Two', 3 => 'Three', 4 => 'Four', 5 => 'Five', 6 => 'Six', 7 => 'Seven', 8 => 'Eight', 9 => 'Nine' ); $teens = array( 1 => …
Re: Project Euler Problem 17
Programming
Web Development
15 Years Ago
by tux4life
[QUOTE]Maybe I overlooked something.[/QUOTE] I don't know whether it's the only thing, but look very closely at this: [CODE=PHP] $tens = array( 1 => 'Ten', 2 => 'Twenty', 3 => 'Thirty', 4 => 'Fourty', 5 => 'Fifty', 6 => 'Sixty', 7 => 'Seventy', 8 => 'Eighty', 9 => 'Ninety' ); [/CODE] Soon you'll …
Re: Project Euler Problem 17
Programming
Web Development
15 Years Ago
by diafol
That'll do it - 1 char X 100 instances (10 lots of forty-something for every set of 100 numbers). Nice spot tux, but I have to say KK - your solution is pretty.
Re: Project Euler Problem 17
Programming
Web Development
15 Years Ago
by O71v13r
Thanks kkeith29, It's true, your code looks more pretty than mine. I'm still learning PHP and as you can see, I don't know a lot of functions of PHP yet. [QUOTE]Soon you'll probably notice that it isn't fourty, but forty .[/QUOTE] It's quite funny that you've made the same mistake as I did in the beginning. I wrote also fourty instead of …
Re: Project Euler Problem 17
Programming
Web Development
15 Years Ago
by somedude3488
Wow, I can't believe I missed that.
Re: Project Euler Problem
Programming
Software Development
14 Years Ago
by mrnutty
The key idea is to use the [URL="http://en.wikipedia.org/wiki/Modulo_operation"]modulo operation[/URL]. For example [icode]if(num % 2 == 0){...}[/icode] means that [i]num[/i] is evenly divided by 2, thus checks if num is even. Use that idea. Your algorithm is more complicated than it needs to be.
Re: Project Euler - Problem 17 Help
Programming
Software Development
14 Years Ago
by Momerath
You seem to be going from 0 to 999 instead of 1 to 1000.
Re: Project Euler - Problem 17 Help
Programming
Software Development
14 Years Ago
by thebigbroski
Right under my loop I commented a line of code that represented 1000. (One Thousand) which is 11 letters.
1
2
3
8
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC