Search found 9 matches

by Agrentum
Mon Aug 04, 2014 11:57 am
Forum: Clarifications on Project Euler Problems
Topic: Problem 050
Replies: 42
Views: 13125

Re: Problem 050

Thanks for offer but I have found my problem today. Changed ranges in generated primes and changed order of some conditions. Rookie mistake, but droved me crazy for days. I'm now down to 0.227s on average after finally getting through my thick skull that I don't need most of generated primes and tha...
by Agrentum
Mon Aug 04, 2014 11:50 am
Forum: Clarifications on Project Euler Problems
Topic: Problem 342
Replies: 3
Views: 1859

Re: Problem 342

Congratulations with improvement :). I pushed technical side of question mostly because things like bit-tricks, peculiar language and compiler options etc are my thing. You might be interested to look that up regardless. Thanks for answering and keep on with learning :)
by Agrentum
Sun Aug 03, 2014 11:57 am
Forum: Clarifications on Project Euler Problems
Topic: Problem 050
Replies: 42
Views: 13125

Re: Problem 050

Hi everybody. I hope you will not mind, but I wanted to benchmark my solution in C++11. Here are my parameters: Compiler: GCC 4.7.2 CPU: Intel Core i7-3517U, 1.90GHz Flags used in compilation: -Wall -Wextra (no output generated) -g (for debugging purpose, Valgrind returned no problems or leaks) -Ofa...
by Agrentum
Mon Jul 28, 2014 6:26 pm
Forum: Clarifications on Project Euler Problems
Topic: Problem 342
Replies: 3
Views: 1859

Re: Problem 342

What is your setup? I'm down to ~1880ms on average, program is written in C with some inline assembly here and there so I won't get rusty :P. After that compiled and tuned for my CPU architecture. Here are my parameters: CPU: Intel(R) Core(TM) i7-3517U CPU @ 1.90GHz, 8GB RAM, GCC 4.7.2-5 on Debian7....
by Agrentum
Tue Jul 15, 2014 8:54 am
Forum: Programming languages
Topic: Big Integers in C++ [Partially solved]
Replies: 8
Views: 10163

Re: Big Integers in C++ [Partially solved]

If OP don't mind some questions, I would be happy to help. Could you show example of code that throws said error? Have you tried running sample and run-testsuite programs before? How did you compile program? Problem guess for now: Errors like that are typical for cases where you did not link librari...
by Agrentum
Fri Jul 11, 2014 2:05 am
Forum: Programming languages
Topic: Pick a Language
Replies: 19
Views: 19783

Re: Pick a Language

I'm going to stray a bit from advice here, and propose to actually start learning with C. Here is why: C allows you to write insanely efficient code. It is not as easy as Python or Ruby to start, but it will throw you into deep water. At first you might struggle with some quite rudimentary things bu...
by Agrentum
Thu Jul 10, 2014 3:28 am
Forum: Programming languages
Topic: Mathematica
Replies: 5
Views: 4291

Re: Mathematica

I can confirm earlier claims: Mathematica is armed in pretty powerful parallelization tools and vast library of special functions. Just like all other turing-complete languages it allows solution of all classes of problems that are possible to solve in C (just using it as example, it is pretty much ...
by Agrentum
Tue Jun 10, 2014 4:21 am
Forum: Resources
Topic: Project Euler in Polish
Replies: 2
Views: 7552

Re: Project Euler in Polish

Is the site down permanently, or was it transfered somewhere else?
by Agrentum
Tue May 06, 2014 12:14 am
Forum: News, Suggestions, and FAQ
Topic: Level of Programming Knowledge Required
Replies: 4
Views: 2971

Re: Level of Programming Knowledge Required

I think it would serve you well to read about options offered by your compiler and some 'when is what doing what and how could it be done simpler' type of thinking. Technical details below are mostly based on my experiments with C, my compiler is gcc-4.8. What I mean about compiler options: read up ...