euler
7 months ago#49 in Go master
Pete [Tue, 19 Sep 2023 02:06:53 +0000 (19:06 -0700)]
#49 in Go

3 years agoMerge branch 'master' of localhost:euler
Pete [Tue, 27 Oct 2020 03:19:04 +0000 (20:19 -0700)]
Merge branch 'master' of localhost:euler

3 years ago031 in Rust
Pete [Tue, 27 Oct 2020 03:17:42 +0000 (20:17 -0700)]
031 in Rust

3 years agoI don't want color in acme.
Pete [Tue, 27 Oct 2020 03:17:11 +0000 (20:17 -0700)]
I don't want color in acme.

(Or in general nowadays.)

3 years agoThis wasn't as bad as I expected.
Pete [Tue, 27 Oct 2020 03:14:40 +0000 (20:14 -0700)]
This wasn't as bad as I expected.

5 years agoI don't remember when I made this change, but it looks correct.
Pete Elmore [Thu, 5 Jul 2018 20:32:20 +0000 (13:32 -0700)]
I don't remember when I made this change, but it looks correct.

5 years agoAnd put awk for 89 into the Makefile. (I should switch to mk.)
Pete Elmore [Thu, 5 Jul 2018 20:31:06 +0000 (13:31 -0700)]
And put awk for 89 into the Makefile.  (I should switch to mk.)

5 years ago87 in Go and in Racket.
Pete Elmore [Thu, 5 Jul 2018 20:27:14 +0000 (13:27 -0700)]
87 in Go and in Racket.

5 years ago134 in Racket (good but dumb version) and Ruby (slow but dumb version).
Pete Elmore [Thu, 5 Jul 2018 20:24:58 +0000 (13:24 -0700)]
134 in Racket (good but dumb version) and Ruby (slow but dumb version).

5 years ago104 in Go and Racket.
Pete Elmore [Thu, 5 Jul 2018 20:23:26 +0000 (13:23 -0700)]
104 in Go and Racket.

5 years ago111 in Go and C.
Pete Elmore [Thu, 5 Jul 2018 20:23:07 +0000 (13:23 -0700)]
111 in Go and C.

5 years ago89 in awk.
Pete Elmore [Thu, 5 Jul 2018 20:22:40 +0000 (13:22 -0700)]
89 in awk.

5 years ago26 in Go and Racket, 54/56/59 in Ruby.
Pete Elmore [Tue, 19 Jun 2018 22:40:58 +0000 (15:40 -0700)]
26 in Go and Racket, 54/56/59 in Ruby.

8 years agoawk solution to #40, with a very bad benchmarking of four awks.
Pete Elmore [Tue, 5 Apr 2016 04:33:30 +0000 (21:33 -0700)]
awk solution to #40, with a very bad benchmarking of four awks.

8 years agoSome minor tweaks.
Pete Elmore [Mon, 4 Apr 2016 23:01:51 +0000 (16:01 -0700)]
Some minor tweaks.

11 years agoLimbo #47
Pete Elmore [Tue, 1 Jan 2013 00:06:26 +0000 (16:06 -0800)]
Limbo #47

11 years agoLimbo #47
Pete Elmore [Tue, 1 Jan 2013 00:06:26 +0000 (16:06 -0800)]
Limbo #47

11 years agoREADME tweak.
Pete Elmore [Tue, 1 Jan 2013 00:05:58 +0000 (16:05 -0800)]
README tweak.

11 years agoREADME tweak.
Pete Elmore [Tue, 25 Dec 2012 23:48:27 +0000 (15:48 -0800)]
README tweak.

11 years agoLimbo solutions for #57, #61, #97.
Pete Elmore [Tue, 25 Dec 2012 23:43:35 +0000 (15:43 -0800)]
Limbo solutions for #57, #61, #97.

11 years agoAccount for Acme.
Pete Elmore [Tue, 25 Dec 2012 23:41:10 +0000 (15:41 -0800)]
Account for Acme.

11 years agoLimbo #55, Inferno shell #7 and #10, add timing information for Pez/Ruby #10.
Pete Elmore [Sat, 22 Dec 2012 02:37:59 +0000 (18:37 -0800)]
Limbo #55, Inferno shell #7 and #10, add timing information for Pez/Ruby #10.

11 years agoAdd timing info for Go #31.
Pete Elmore [Thu, 6 Dec 2012 19:25:36 +0000 (11:25 -0800)]
Add timing info for Go #31.

11 years agoMinor cleanup for Limbo #67 and #102.
Pete Elmore [Thu, 6 Dec 2012 19:24:31 +0000 (11:24 -0800)]
Minor cleanup for Limbo #67 and #102.

11 years agoGo solution for #31.
Pete Elmore [Thu, 6 Dec 2012 19:22:27 +0000 (11:22 -0800)]
Go solution for #31.

11 years agoMakefile for #79, trim nonsense from #67.
Pete Elmore [Sun, 24 Jun 2012 21:37:53 +0000 (14:37 -0700)]
Makefile for #79, trim nonsense from #67.

11 years agoInferno shell programs for #48, #79.
Pete Elmore [Sun, 24 Jun 2012 15:40:44 +0000 (08:40 -0700)]
Inferno shell programs for #48, #79.

11 years agoCommentary on sh #29.
Pete Elmore [Sun, 24 Jun 2012 01:19:31 +0000 (18:19 -0700)]
Commentary on sh #29.

11 years agosh #29
Pete Elmore [Sun, 24 Jun 2012 01:11:37 +0000 (18:11 -0700)]
sh #29

11 years agoTiming info for Awk #39.
Pete Elmore [Sun, 24 Jun 2012 01:01:25 +0000 (18:01 -0700)]
Timing info for Awk #39.

11 years agoLimbo and Awk solutions for #39.
Pete Elmore [Sat, 23 Jun 2012 23:08:02 +0000 (16:08 -0700)]
Limbo and Awk solutions for #39.

11 years agoActually enable JIT this time.
Pete Elmore [Sat, 23 Jun 2012 19:25:37 +0000 (12:25 -0700)]
Actually enable JIT this time.

11 years agoUpdate a couple of time-related comments.
Pete Elmore [Sat, 23 Jun 2012 19:21:38 +0000 (12:21 -0700)]
Update a couple of time-related comments.

11 years agoJam the Limbo stuff into a single target, since make "helpfully" rm's files
Pete Elmore [Sat, 23 Jun 2012 19:19:44 +0000 (12:19 -0700)]
Jam the Limbo stuff into a single target, since make "helpfully" rm's files
it doesn't think I'll need later, and turn on JIT for Inferno sh.

11 years agoInferno sh #53, Limbo #18.
Pete Elmore [Sat, 23 Jun 2012 19:19:11 +0000 (12:19 -0700)]
Inferno sh #53, Limbo #18.

11 years agoAdding solutions to 067 in Awk, Limbo, and Inferno sh.
Pete Elmore [Sat, 23 Jun 2012 19:17:11 +0000 (12:17 -0700)]
Adding solutions to 067 in Awk, Limbo, and Inferno sh.

12 years agoCut two calls to the expr module. Very, very tiny speedup.
Pete Elmore [Wed, 16 May 2012 04:21:38 +0000 (21:21 -0700)]
Cut two calls to the expr module.  Very, very tiny speedup.

12 years agoPermission tweak and comment tweak.
Pete Elmore [Wed, 16 May 2012 04:21:16 +0000 (21:21 -0700)]
Permission tweak and comment tweak.

12 years agoUpdate the readme.
Pete Elmore [Wed, 16 May 2012 04:20:41 +0000 (21:20 -0700)]
Update the readme.

12 years agoInferno shell solution for #19.
Pete Elmore [Wed, 16 May 2012 04:16:58 +0000 (21:16 -0700)]
Inferno shell solution for #19.

12 years agoUpdate the README.
Pete Elmore [Thu, 5 Apr 2012 00:24:33 +0000 (17:24 -0700)]
Update the README.

12 years agoRuby solution for #99.
Pete Elmore [Thu, 5 Apr 2012 00:19:39 +0000 (17:19 -0700)]
Ruby solution for #99.

12 years agoLimbo solution for #23.
Pete Elmore [Thu, 5 Apr 2012 00:18:40 +0000 (17:18 -0700)]
Limbo solution for #23.

12 years agoSolution to 31 in the Inferno shell.
Pete Elmore [Thu, 5 Apr 2012 00:17:59 +0000 (17:17 -0700)]
Solution to 31 in the Inferno shell.

12 years agoNot using the Math module.
Pete Elmore [Thu, 5 Apr 2012 00:17:32 +0000 (17:17 -0700)]
Not using the Math module.

12 years agoMinor comment on the C version.
Pete Elmore [Thu, 5 Apr 2012 00:13:53 +0000 (17:13 -0700)]
Minor comment on the C version.

12 years agoLimbo s/i/l/, adding target for the Inferno shell.
Pete Elmore [Thu, 5 Apr 2012 00:13:24 +0000 (17:13 -0700)]
Limbo s/i/l/, adding target for the Inferno shell.

12 years agoMinor reformatting.
Pete Elmore [Sat, 11 Feb 2012 21:16:16 +0000 (13:16 -0800)]
Minor reformatting.

12 years agoRuby #57. I don't anticipate I'll actually need arbitrary precision *that*
Pete Elmore [Mon, 7 Nov 2011 08:48:27 +0000 (00:48 -0800)]
Ruby #57.  I don't anticipate I'll actually need arbitrary precision *that*
often in Limbo, but Project Euler makes me miss it.

12 years agoWhoops...It's good if the program terminates at some point.
Pete Elmore [Mon, 7 Nov 2011 08:48:00 +0000 (00:48 -0800)]
Whoops...It's good if the program terminates at some point.

12 years agoSolve #52 in Limbo.
Pete Elmore [Mon, 7 Nov 2011 07:18:18 +0000 (23:18 -0800)]
Solve #52 in Limbo.

12 years ago"\n\n\Z" -> "\n\Z"
Pete Elmore [Mon, 7 Nov 2011 07:15:39 +0000 (23:15 -0800)]
"\n\n\Z" -> "\n\Z"

12 years agoMight be useful to *use* the limbo flags.
Pete Elmore [Mon, 7 Nov 2011 07:15:26 +0000 (23:15 -0800)]
Might be useful to *use* the limbo flags.

12 years agoExplain the problem in the comments for Limbo #1.
Pete Elmore [Mon, 7 Nov 2011 05:22:59 +0000 (21:22 -0800)]
Explain the problem in the comments for Limbo #1.

12 years agoMention the speed of Limbo solution for #100.
Pete Elmore [Mon, 7 Nov 2011 05:19:30 +0000 (21:19 -0800)]
Mention the speed of Limbo solution for #100.

12 years agoTweak the -p output for bin/stats slightly.
Pete Elmore [Mon, 7 Nov 2011 05:19:02 +0000 (21:19 -0800)]
Tweak the -p output for bin/stats slightly.

12 years agoTweak the Makefile so Limbo does JIT and Pure keeps debugging symbols.
Pete Elmore [Mon, 7 Nov 2011 05:18:42 +0000 (21:18 -0800)]
Tweak the Makefile so Limbo does JIT and Pure keeps debugging symbols.

12 years agoA few more solutions in Limbo.
Pete Elmore [Mon, 7 Nov 2011 04:45:33 +0000 (20:45 -0800)]
A few more solutions in Limbo.

12 years agoMerge branch 'master' of localhost:euler
Pete Elmore [Wed, 26 Oct 2011 05:19:52 +0000 (22:19 -0700)]
Merge branch 'master' of localhost:euler

12 years agoRedocument that.
Pete Elmore [Wed, 26 Oct 2011 12:19:08 +0000 (05:19 -0700)]
Redocument that.

12 years agoThree solutions in Limbo. #31 seems to lend itself well to fun approaches in
Pete Elmore [Wed, 26 Oct 2011 12:05:09 +0000 (05:05 -0700)]
Three solutions in Limbo.  #31 seems to lend itself well to fun approaches in
various languages.

12 years agoLimbo in the stats file!
Pete Elmore [Wed, 26 Oct 2011 12:04:25 +0000 (05:04 -0700)]
Limbo in the stats file!

12 years agoLimbo in the makefile!
Pete Elmore [Wed, 26 Oct 2011 12:04:10 +0000 (05:04 -0700)]
Limbo in the makefile!

12 years agoMerge branch 'master' of localhost:euler
Pete Elmore [Wed, 26 Oct 2011 05:11:49 +0000 (22:11 -0700)]
Merge branch 'master' of localhost:euler

12 years agoAwk solutions for #14 and #99.
Pete Elmore [Wed, 26 Oct 2011 05:11:28 +0000 (22:11 -0700)]
Awk solutions for #14 and #99.

12 years agoAdding a099 to the makefile, one comment for 014.
Pete Elmore [Wed, 26 Oct 2011 05:10:41 +0000 (22:10 -0700)]
Adding a099 to the makefile, one comment for 014.

13 years agoClean up the Makefile a bit, and add targets for Racket.
Pete Elmore [Sat, 14 May 2011 09:45:01 +0000 (02:45 -0700)]
Clean up the Makefile a bit, and add targets for Racket.

13 years agoAdding Racket.
Pete Elmore [Sat, 14 May 2011 09:44:53 +0000 (02:44 -0700)]
Adding Racket.

13 years agoTwo awk solutions. awk is *fun*.
Pete Elmore [Mon, 2 May 2011 18:30:21 +0000 (11:30 -0700)]
Two awk solutions.  awk is *fun*.

13 years agoAdd -p flag to bin/stats
Pete Elmore [Mon, 2 May 2011 18:21:27 +0000 (11:21 -0700)]
Add -p flag to bin/stats

13 years agoErlang: Inconvenient.
Pete Elmore [Mon, 2 May 2011 18:21:00 +0000 (11:21 -0700)]
Erlang:  Inconvenient.

13 years agoIgnore pure/bin/*
Pete Elmore [Mon, 2 May 2011 18:19:18 +0000 (11:19 -0700)]
Ignore pure/bin/*

13 years agoMake it a little clearer from the output without reading the source.
Pete Elmore [Mon, 2 May 2011 18:17:43 +0000 (11:17 -0700)]
Make it a little clearer from the output without reading the source.

13 years agoSolved #31 in Pure. It's a problem that lends itself to diverse solutions!
Pete Elmore [Fri, 18 Mar 2011 17:37:53 +0000 (10:37 -0700)]
Solved #31 in Pure.  It's a problem that lends itself to diverse solutions!

13 years agoSolutions in Pure!
Pete Elmore [Fri, 18 Mar 2011 17:36:40 +0000 (10:36 -0700)]
Solutions in Pure!

13 years agoLua port of the Pez version of 25.
Pete Elmore [Sun, 9 Jan 2011 23:11:36 +0000 (15:11 -0800)]
Lua port of the Pez version of 25.

13 years agoCleanup Pez solution for 25.
Pete Elmore [Sun, 9 Jan 2011 23:08:34 +0000 (15:08 -0800)]
Cleanup Pez solution for 25.

13 years agoUse erlc instead of escript, which make a huge runtime difference.
Pete Elmore [Sun, 9 Jan 2011 23:04:10 +0000 (15:04 -0800)]
Use erlc instead of escript, which make a huge runtime difference.

13 years agoCompile rather than using escript, which is slow like hell.
Pete Elmore [Sun, 9 Jan 2011 23:01:10 +0000 (15:01 -0800)]
Compile rather than using escript, which is slow like hell.

13 years agoErlang is a noisy language.
Pete Elmore [Sun, 9 Jan 2011 23:00:51 +0000 (15:00 -0800)]
Erlang is a noisy language.

13 years ago112 in Erlang.
Pete Elmore [Sun, 9 Jan 2011 23:00:17 +0000 (15:00 -0800)]
112 in Erlang.

13 years agoI made a solution in Erlang, I wrote some Erlang and I used actors and tail-
Pete Elmore [Sat, 8 Jan 2011 02:22:14 +0000 (18:22 -0800)]
I made a solution in Erlang, I wrote some Erlang and I used actors and tail-
recursion, and I had some fun and learned some geometry that I did not
previously know.

13 years agoEven JavaScript gets some love.
Pete Elmore [Tue, 21 Dec 2010 07:39:41 +0000 (23:39 -0800)]
Even JavaScript gets some love.

13 years agoAlso, after writing these, I found out that Lua does #! lines.
Pete Elmore [Tue, 21 Dec 2010 07:39:03 +0000 (23:39 -0800)]
Also, after writing these, I found out that Lua does #! lines.

13 years agoI have not committed in forever, and I solved some problems in the mean time.
Pete Elmore [Tue, 21 Dec 2010 07:34:35 +0000 (23:34 -0800)]
I have not committed in forever, and I solved some problems in the mean time.

13 years agoWow, I have not committed in a long time.
Pete Elmore [Tue, 21 Dec 2010 06:59:51 +0000 (22:59 -0800)]
Wow, I have not committed in a long time.

13 years agoRuby solution for #20. As lame as the one for #16.
Pete Elmore [Thu, 25 Nov 2010 09:45:26 +0000 (01:45 -0800)]
Ruby solution for #20.  As lame as the one for #16.

13 years ago16 was trivial, 17 was annoying. Both done in Ruby.
Pete Elmore [Thu, 25 Nov 2010 09:31:28 +0000 (01:31 -0800)]
16 was trivial, 17 was annoying.  Both done in Ruby.

13 years agoBash, C, and Ruby for #31, and a tweak to the Pez one. All under 1 second!
Pete Elmore [Thu, 25 Nov 2010 08:56:01 +0000 (00:56 -0800)]
Bash, C, and Ruby for #31, and a tweak to the Pez one.  All under 1 second!

13 years agochmod 755
Pete Elmore [Tue, 23 Nov 2010 05:50:48 +0000 (21:50 -0800)]
chmod 755

13 years agoProblem #31 in Erlang, Lua, and Pez.
Pete Elmore [Tue, 23 Nov 2010 05:50:02 +0000 (21:50 -0800)]
Problem #31 in Erlang, Lua, and Pez.

13 years agoErlang (0.18s) and Lua (0.001s) solutions for #3. I have done the Erlang one
Pete Elmore [Thu, 18 Nov 2010 09:23:48 +0000 (01:23 -0800)]
Erlang (0.18s) and Lua (0.001s) solutions for #3.  I have done the Erlang one
wrong.

13 years agoErlang and Lua solutions for #1.
Pete Elmore [Thu, 18 Nov 2010 08:25:23 +0000 (00:25 -0800)]
Erlang and Lua solutions for #1.

13 years agoNothing. It's dumb. It says so on the second line.
Pete Elmore [Thu, 18 Nov 2010 08:23:26 +0000 (00:23 -0800)]
Nothing.  It's dumb.  It says so on the second line.

13 years ago15 in Ruby.
Pete Elmore [Wed, 17 Nov 2010 09:08:42 +0000 (01:08 -0800)]
15 in Ruby.

13 years ago28 in Pez.
Pete Elmore [Wed, 17 Nov 2010 09:08:33 +0000 (01:08 -0800)]
28 in Pez.

13 years ago24 in Pez.
Pete Elmore [Wed, 17 Nov 2010 09:08:24 +0000 (01:08 -0800)]
24 in Pez.

13 years agoPez for #15.
Pete Elmore [Wed, 17 Nov 2010 09:08:13 +0000 (01:08 -0800)]
Pez for #15.

13 years agoRuby and bash solutions for #124.
Pete Elmore [Wed, 17 Nov 2010 09:07:52 +0000 (01:07 -0800)]
Ruby and bash solutions for #124.

13 years agoA Makefile and a stats script.
Pete Elmore [Wed, 17 Nov 2010 09:07:27 +0000 (01:07 -0800)]
A Makefile and a stats script.