Added the rest of the fibonacci lists
This commit is contained in:
@@ -2,28 +2,28 @@
|
||||
|
||||
maxint=9223372036854775807
|
||||
root=3037000499
|
||||
destination=255
|
||||
|
||||
found=0
|
||||
|
||||
rm -f fibonacci.list
|
||||
|
||||
SECONDS=0
|
||||
|
||||
destination=65535
|
||||
destination=1099511627775
|
||||
n=1
|
||||
l=1
|
||||
t=0
|
||||
|
||||
echo "0001 1" >> fibonacci.list
|
||||
echo "0000000001 1" >> fibonacci.list
|
||||
|
||||
while [[ $n -le $destination ]]; do
|
||||
while [[ $n -le $destination ]] && [[ $n -gt 0 ]]; do
|
||||
t=$((l+n))
|
||||
l=$n
|
||||
n=$t
|
||||
if [[ $n -le $destination ]]; then
|
||||
clear
|
||||
((found++))
|
||||
hex=$(printf "%04X" "$n")
|
||||
hex=$(printf "%010X" "$n")
|
||||
echo "Number $n of $destination is FIBONACCI [$((n*100/destination)) %]"
|
||||
echo "$hex $n" >> fibonacci.list
|
||||
rate=$((SECONDS*1000000/n))
|
||||
|
||||
Reference in New Issue
Block a user