Search found 139 matches

by MuthuVeerappanR
Fri Jun 28, 2019 5:15 am
Forum: News, Suggestions, and FAQ
Topic: Errors/Warnings/Bugs
Replies: 497
Views: 94320

Re: Errors/Warnings/Bugs

We cannot make two consecutive posts in the same solution forum. I think you should be able to edit your post and add the content in the same post.
by MuthuVeerappanR
Mon May 27, 2019 10:33 am
Forum: Clarifications on Project Euler Problems
Topic: Problem 671
Replies: 3
Views: 2925

Re: Problem 671

671 Hi All, Tiling which are identical after rotating the loop about its axis considered different? Only if I consider them different, I get F_4(3) = 104. Else am stuck at 92. I'm not sure whether 'reflecting horizontally or vertically would give a different tiling, these tilings are to be counted ...
by MuthuVeerappanR
Mon May 06, 2019 8:17 am
Forum: Clarifications on Project Euler Problems
Topic: Problem 272
Replies: 14
Views: 8007

Re: Problem 272

Hi mdean,
If you could PM your value, I can confirm it.
by MuthuVeerappanR
Tue Mar 05, 2019 4:43 pm
Forum: News, Suggestions, and FAQ
Topic: Project Euler Style Sheet Update
Replies: 33
Views: 7444

Re: Project Euler Style Sheet Update

The kudos count is aligned properly now. Kudos for that euler...
by MuthuVeerappanR
Mon Mar 04, 2019 12:59 am
Forum: News, Suggestions, and FAQ
Topic: Project Euler Style Sheet Update
Replies: 33
Views: 7444

Re: Project Euler Style Sheet Update

Many thanks to the PE team for the new style. The site looks great with the new styling.

The only issue that I saw was as that of MHealy. For non-permananent posts, the kudos are slightly mis-aligned in Chrome.

Truly appreciate the hard work in getting PE a new style.
by MuthuVeerappanR
Tue Nov 27, 2018 10:29 am
Forum: News, Suggestions, and FAQ
Topic: Errors/Warnings/Bugs
Replies: 497
Views: 94320

Re: Errors/Warnings/Bugs

For me the problem appears in Chrome but not in IE...
by MuthuVeerappanR
Tue Nov 27, 2018 4:42 am
Forum: News, Suggestions, and FAQ
Topic: Errors/Warnings/Bugs
Replies: 497
Views: 94320

Re: Errors/Warnings/Bugs

Now I have this problem...

If I try to view my posts from 173-180, then am directed to the sign-in page even though am not signed-out of PE.
by MuthuVeerappanR
Fri Aug 24, 2018 4:14 am
Forum: Programming languages
Topic: which compiler to use for c++ programs
Replies: 2
Views: 4371

Re: which compiler to use for c++ programs

Like v6ph1 said, if you are looking for online compilers, repl is my favourite..
by MuthuVeerappanR
Fri Aug 10, 2018 5:52 am
Forum: Number Theory
Topic: An Infinite Prime Number Generator
Replies: 5
Views: 5315

Re: An Infinite Prime Number Generator

I changed the code to remove the loop-checking and use modified-step values but still no improvements in timing. For example, the mod-2 version takes ~ 75 secs to list all primes upto 10^8, the mod-6 version takes ~ 85 secs whereas the step-adjusted-mod-6 version takes ~ 95 secs. step-adjusted-mod-6...
by MuthuVeerappanR
Thu Aug 09, 2018 12:00 pm
Forum: Number Theory
Topic: An Infinite Prime Number Generator
Replies: 5
Views: 5315

Re: An Infinite Prime Number Generator

Thanks v6ph1. I too arrived at the same loop for making the program slow. But I think it may be slightly different. Rather than the loop checking, I think the runs more often as the chance of hitting the numbers with mod in the given set becomes low. That I think is the trade-off in the higher mod v...
by MuthuVeerappanR
Thu Aug 09, 2018 3:51 am
Forum: Number Theory
Topic: An Infinite Prime Number Generator
Replies: 5
Views: 5315

An Infinite Prime Number Generator

Hi all, I recently saw a post on an Infinite Prime Number Generator on Stack Exchange given below. from itertools import count from timeit import default_timer start = default_timer() # ideone.com/aVndFM def postponed_sieve(): # postponed sieve, by Will Ness for c in (2, 3, 5, 7): # original code Da...
by MuthuVeerappanR
Tue Jul 10, 2018 1:59 pm
Forum: Number
Topic: an old maths olympiad question
Replies: 28
Views: 14440

Re: an old maths olympiad question

@ jaap , I think you did all the heavy lifting leaving just the algebra to me. The key to solving this problem is to pick the 'central angle' as the variable of interest. Though the 'cubic' approach ended nowhere, it reminded me of the trick of evaluating $\sin(\pi/5)$ exactly, which I kinda used to...
by MuthuVeerappanR
Tue Jul 10, 2018 11:13 am
Forum: Number
Topic: an old maths olympiad question
Replies: 28
Views: 14440

Re: an old maths olympiad question

... It is straightforward to see that: A1A2 = 2sin(x) A1A3 = 2sin(2x) A1A4 = 2sin(3x) From here, we have, $\displaystyle\frac{1}{\sin x}=\frac{1}{\sin 2x}+\frac{1}{\sin 3x}$ $\displaystyle\sin 2x=\frac{\sin x \sin 3x}{\sin 3x-\sin x}=\frac{\sin x \sin 3x}{2\sin x-4 \sin^3 x}=\frac{\sin x\sin 3x}{2 ...
by MuthuVeerappanR
Tue Jun 12, 2018 11:00 am
Forum: Combinatorics
Topic: Die and matchsticks game from 'The Goal'
Replies: 0
Views: 8032

Die and matchsticks game from 'The Goal'

Hi All, This post is about an analysis of a game described in Goldratt's best seller 'The Goal'. The game is as follows: Consider $b$ bins of infinite capacity in a row with an imaginary Source of infinite matchsticks. Matchsticks are transferred to the bins in the following manner: For every bin, m...
by MuthuVeerappanR
Mon Apr 30, 2018 5:49 pm
Forum: Clarifications on Project Euler Problems
Topic: Problem 549
Replies: 19
Views: 4670

Re: Problem 549

merlinnimue wrote:
Mon Apr 30, 2018 5:08 pm
Quick sanity check: can anyone confirm if S(10^6) =xxxxxxxxxxxxxxx?
We are not supposed to post partial answers in this forum. But anyway, the value you posted seems to be wrong. Happy solving!!
by MuthuVeerappanR
Mon Apr 09, 2018 8:00 am
Forum: News, Suggestions, and FAQ
Topic: New Awards (10 April 2015)
Replies: 9
Views: 2894

Re: New Awards (10 April 2015)

A suggestion on awards.. Is there a possibility of introducing country-wise awards.. Something like 'First in your country', 'Top solver of your country' and something like that?? The Elite group is highly competitive to even make an attempt at getting some awards like 'The Gold Medal'. Would probab...
by MuthuVeerappanR
Tue Mar 27, 2018 7:04 am
Forum: Clarifications on Project Euler Problems
Topic: Problem 623
Replies: 17
Views: 2358

Re: Problem 623

Thank you all.. Solved it... For someone who didn't study computer science, the whole problem seemed very convoluted but fortunately the structure of the problem was quite simple.. One more thing.. Should the number of solvers be hidden until we solve a problem? At least recently for me, I'm taking ...
by MuthuVeerappanR
Mon Mar 26, 2018 5:48 am
Forum: Clarifications on Project Euler Problems
Topic: Problem 623
Replies: 17
Views: 2358

Re: Problem 623

Scoping in lambda calculus works very much like in C-family languages. Consider these two lines of pseudo-code: { string x = "foo"; { string y = "bar"; print(x, y); } } { string x = "foo"; { string x = "bar"; print(x, x); } } They are not equivalent, because the first one prints "foo bar" and the s...
by MuthuVeerappanR
Thu Mar 15, 2018 8:01 am
Forum: Programming languages
Topic: CAN MATLAB SOLVE THESE PROBLEMS
Replies: 4
Views: 5177

Re: CAN MATLAB SOLVE THESE PROBLEMS

traxex wrote:
Thu Mar 15, 2018 5:35 am
MuthuVeerappanR wrote:
Thu Mar 15, 2018 4:08 am
lately many problems seems solvable-within-a-minute in C, C++ mostly.
Can you give some examples?
Problem 614 (View Problem) and Problem 611 (View Problem) I think..
by MuthuVeerappanR
Thu Mar 15, 2018 4:08 am
Forum: Programming languages
Topic: CAN MATLAB SOLVE THESE PROBLEMS
Replies: 4
Views: 5177

Re: CAN MATLAB SOLVE THESE PROBLEMS

The choice of programming language is tough problem by itself in PE. Probably, the best answer would be, 'No one programming language can solve all the problems equally well'. I've seen many MATLAB solutions in the 400- problems, but lately many problems seems solvable-within-a-minute in C, C++ most...