-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cell-size-5.bf
43 lines (43 loc) · 1.59 KB
/
cell-size-5.bf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[
This cell size checker only finds binary cells.
It works upto a million bits per cell.
]
// Calculate (16^16)^(4*8^4) AKA 2^1048576
>>>>++++[<++++++++>-]<[>++++++++<-]>[<++++++++>-]<[<++++++++>-]<
[<<
+>>[-<<
[->++++++++++++++++<]>[-<++++++++++++++++>]<
[->++++++++++++++++<]>[-<++++++++++++++++>]<
[->++++++++++++++++<]>[-<++++++++++++++++>]<
[->++++++++++++++++<]>[-<++++++++++++++++>]<
[->++++++++++++++++<]>[-<++++++++++++++++>]<
[->++++++++++++++++<]>[-<++++++++++++++++>]<
[->++++++++++++++++<]>[-<++++++++++++++++>]<
[->++++++++++++++++<]>[-<++++++++++++++++>]<
>>]]<+<
// If that's not zero we have a bignum; probably
[>
>[-]<[-]++++++[->+++++++++++++<]>.----[--<+++>]<.+.-----------.-
-[--->+<]>.[---<+>]<-.[-]
<[-]]
>[>
// "This interpreter has"
[-]>[-]>[-]>[-]>[-]<<<++++[<++++>-]<+[>++++++>+++++++>++>+++++<<<<-]>>>>
-.<<<++.+.>----.>--.<<.+++++.>+.<---------.>--.--.++.<.>++.<.>--.>.<<+++
.-------.>+.>>[-]<[-]<[-]<[-]<
// find the number
>+[ [->++<]>[-<+>]<<+> ]<
// Space
>> [-]>[-]++++++++[<++++>-]<.[-] <<
// print the number
>[-]>[-]>[-]>[-]>[-]>[-]+>[-]+>[-]+>[-]+<<<<<<<<<[->>+>+<<<]>>>[
-<<<+>>>]<[>[-]>[-]<<[>+>+<<-]>>[<<+>>-]+++++++++<[>>>[-]+<<[>+>
[-]<<-]>[<+>-]>[<<++++++++++>>-]<<-<-]+++++++++>[<->-]<[>+<-]<[>
+<-]<[>+<-]>>>[<<<+>>>-]>>>[-]<<<+++++++++<[>>>[-]+<<[>+>[-]<<-]
>[<+>-]>[<<++++++++++>>>+<-]<<-<-]>>>>[<<<<+>>>>-]<<<[-]<<+>]<[>
[-]<[>+<-]+++++++[<+++++++>-]<-.[-]>>[<<+>>-]<<-]<
// " bit cells"
>[-]<[-]++++[->++++++++<]>.[-<+++>]<++.+++++++.+++++++++++.[---
->+<]>+++.+[-<+++>]<.++.+++++++..+++++++.[----->++<]>.[-]++++++
++++.[-]<
<[-]]<