Aaron Schaefer
03fa8a4887
Alternate solution to Project Euler problem 25
2008-01-04 01:40:01 -05:00
Aaron Schaefer
8748979546
Solution to Project Euler problem 25
2008-01-03 12:21:45 -05:00
Aaron Schaefer
0a6975c423
Solution to Project Euler problem 24
2008-01-03 01:49:46 -05:00
Aaron Schaefer
75c126fef0
Fix path generation for Project Euler problem files
2008-01-02 19:11:08 -05:00
Aaron Schaefer
a2bcdaf696
Solution to Project Euler problem 23
2008-01-02 18:57:57 -05:00
Aaron Schaefer
897a8ed8aa
Replace '<file-reader> contents' with 'file-contents' in all vocabs
2007-12-31 14:47:24 -05:00
Aaron Schaefer
2f04bfadbe
Merge http://littledan.onigirihouse.com/factor.git
...
Conflicts:
extra/project-euler/010/010.factor
extra/project-euler/018/018.factor
extra/project-euler/019/019.factor
extra/project-euler/067/067.factor
extra/project-euler/project-euler.factor
2007-12-30 22:41:04 -05:00
Aaron Schaefer
41fa14010d
Move file-contents word to core/io/io.factor
2007-12-30 21:29:27 -05:00
Daniel Ehrenberg
bea0eb759a
XML docs update
2007-12-30 04:24:05 -05:00
Daniel Ehrenberg
fe2ef1e418
Shufflers tests fix
2007-12-30 04:21:03 -05:00
Daniel Ehrenberg
706d538db1
Merge branch 'for-slava' of git://www.rfc1149.net/factor
2007-12-30 03:39:34 -05:00
Aaron Schaefer
8eff6af322
Fix edge-case and perfect square errors with sum-proper-divisors
2007-12-29 14:09:50 -05:00
Daniel Ehrenberg
4a28fe910d
XML prettyprinter
2007-12-29 01:33:21 -05:00
Samuel Tardieu
483028cc51
Update problems list and simplify code
2007-12-28 14:53:26 +01:00
Samuel Tardieu
a680c3abc5
Fix bug in project Euler 134 and update timings wrt math.algebra code changes
2007-12-28 14:19:47 +01:00
Samuel Tardieu
a9903e1bdc
Remove some words in math.algebra and change implementation
2007-12-28 14:19:40 +01:00
Samuel Tardieu
9760eb4fb1
Update collect-benchmarks so that it does not rely onto computed stack effect
2007-12-28 14:19:19 +01:00
Daniel Ehrenberg
c936895160
sequences.deep bug fix
2007-12-27 21:03:12 -05:00
Daniel Ehrenberg
f536b4c057
Merge branch 'trees'
2007-12-27 20:17:08 -05:00
Daniel Ehrenberg
8a562bc81f
Trees on the assoc protocol
2007-12-27 20:16:55 -05:00
Daniel Ehrenberg
05b76f181f
Extra/trees changes
2007-12-27 13:56:03 -05:00
Samuel Tardieu
caa2a606c2
Use math.primes in project Euler problems
2007-12-27 16:52:19 +01:00
Samuel Tardieu
e17a77f5cd
New module math.primes.factors
2007-12-27 16:52:18 +01:00
Samuel Tardieu
694dd297ad
New module math.primes
2007-12-27 16:52:16 +01:00
Samuel Tardieu
db6dbc5f16
Implement lreduce in lazy-lists
2007-12-27 16:01:28 +01:00
Samuel Tardieu
779f1ba01d
Use related-words in lazy-lists documentation
2007-12-27 16:01:27 +01:00
Samuel Tardieu
3662ed8f0b
Use s> and >s instead of r> and >r to avoid confusion
2007-12-27 15:17:34 +01:00
Samuel Tardieu
76c76b81ed
Simplify lazy-append nil? word
...
lazy-append tuples are always built using lappend. If list1 is nil, then
list2 is returned, hence nil? on a lazy-append object is always false.
2007-12-27 03:42:19 +01:00
Samuel Tardieu
0bf5c6bf0f
Simplify lazy-while and lazy-until constructs
2007-12-27 03:36:38 +01:00
Samuel Tardieu
4eb7aad50b
Use math.algebra to solve project Euler problem 134
2007-12-26 23:08:43 +01:00
Samuel Tardieu
c4529fb557
Add math.algebra module with some useful words.
...
- ext-euclidian implements the extended Euclidian algorithm
- ring-inverse computes an inverse in a Z/nZ ring
- chinese-remainder solves a multi-constraints modular equation
2007-12-26 23:08:15 +01:00
Samuel Tardieu
9f0fb715ab
Factor solution to project Euler problem 134
2007-12-26 21:44:22 +01:00
Samuel Tardieu
aaa4b2a62f
Do not use Eratosthene sieve if n < 1e6 since we have a static primes list
2007-12-26 20:35:35 +01:00
Aaron Schaefer
0dfddab0f6
Remove unnecessarily complicated PE022 solution
2007-12-26 09:06:52 -05:00
Aaron Schaefer
994fe7c142
Solution to Project Euler problem 22
2007-12-26 02:25:10 -05:00
Aaron Schaefer
2ab01a8f25
Fix amicable-pair? false positives
2007-12-25 15:08:37 -05:00
Daniel Ehrenberg
d5baea215d
Splay tree fixes
2007-12-25 02:28:55 -05:00
Aaron Schaefer
f2cf2bc158
Solution to Project Euler problem 21
2007-12-25 00:13:01 -05:00
Aaron Schaefer
5b87577f91
Solution for Project Euler problem 20
2007-12-24 21:54:39 -05:00
Daniel Ehrenberg
2bbf9f3297
Merge branch 'for-slava' of git://www.rfc1149.net/factor
2007-12-24 21:07:50 -05:00
Daniel Ehrenberg
18f85fbaf3
Merge branch 'master' into trees
2007-12-24 21:04:59 -05:00
Daniel Ehrenberg
5917e58c86
Fixed XML bug which made everything stop compiling
2007-12-24 20:48:29 -05:00
Aaron Schaefer
319d96384e
Solution to Project Euler problem 19
2007-12-24 16:29:04 -05:00
Daniel Ehrenberg
85a5beed74
Adding sequences.deep
2007-12-24 13:20:52 -05:00
Aaron Schaefer
2aa9dc9dde
Use Letter? instead of alpha? on euler017a
2007-12-24 13:07:46 -05:00
Aaron Schaefer
207e752464
Typo on Project Euler USING math.ranges
2007-12-24 13:01:11 -05:00
Aaron Schaefer
026a646b78
Merge /Applications/factor
2007-12-24 12:48:05 -05:00
Aaron Schaefer
37f42bb2fc
Alternate solution for Project Euler problem 17
...
Used the new vocab math.text and a string buffer.
2007-12-24 04:36:40 -05:00
Aaron Schaefer
50c3b5de14
Solutions to Project Euler problems 18 and 67
...
Added appropriate words to common.factor and got rid of number>digits for the time being.
2007-12-24 04:32:19 -05:00
Daniel Ehrenberg
d830ed9314
extra/tuple-syntax--named tuple slot literals
2007-12-24 01:58:13 -05:00