From e88e2fd6d5f3ee6595319a8f2fc1e7f475fb622d Mon Sep 17 00:00:00 2001 From: E7-87-83 Date: Sat, 15 Jan 2022 13:59:58 +0800 Subject: blogpost, and minor edit -- cy --- challenge-147/cheok-yin-fung/bash/ch-1.sh | 3 ++- challenge-147/cheok-yin-fung/blog.txt | 26 +------------------------- challenge-147/cheok-yin-fung/smalltalk/ch-1.st | 2 +- 3 files changed, 4 insertions(+), 27 deletions(-) diff --git a/challenge-147/cheok-yin-fung/bash/ch-1.sh b/challenge-147/cheok-yin-fung/bash/ch-1.sh index 3c1247facc..efcf12a5ff 100644 --- a/challenge-147/cheok-yin-fung/bash/ch-1.sh +++ b/challenge-147/cheok-yin-fung/bash/ch-1.sh @@ -28,7 +28,8 @@ done i=0 n=0 -while [ $((prime[$n])) -le 996 ] # 997 or above will return error +while [ $((prime[$n])) -le 900 ] # 997 or above will return error + # ^^^ a bit cheating here do loop=0 k=0 diff --git a/challenge-147/cheok-yin-fung/blog.txt b/challenge-147/cheok-yin-fung/blog.txt index 1e9dccfdc0..1509a3b82a 100644 --- a/challenge-147/cheok-yin-fung/blog.txt +++ b/challenge-147/cheok-yin-fung/blog.txt @@ -1,25 +1 @@ -This is the beginning of the semester of my PG dip in IT; and I have finished all exams and assignments from the previous semester. Somehow today I want to try to play with programming languages. While Mohammad has said, having fun is important in learning, now I try to do the Task 1 in different programming languages which I am fluent at least at the "sightseeing purpose", within 4 days. - -Target list was: -awk bash -C++ -Java Node.js Julia -LISP PHP Perl Smalltalk -Befunge-93 (if I have that mentality) - -Scripts done (last update: Saturday, January 15, 2022 AM08:27:00 HKT): -1. Julia -2. Perl -3. Smalltalk -4. Java -5. C++ -6. Node.js -7. Awk (slow) -8. Bash (slow) -9. - -Left: -LISP ->>>> -The above content will be edited and put on https://e7-87-83.github.io/coding/challenge_147.html - +https://e7-87-83.github.io/coding/challenge_147.html diff --git a/challenge-147/cheok-yin-fung/smalltalk/ch-1.st b/challenge-147/cheok-yin-fung/smalltalk/ch-1.st index a6b33d7074..4ba4e1d005 100644 --- a/challenge-147/cheok-yin-fung/smalltalk/ch-1.st +++ b/challenge-147/cheok-yin-fung/smalltalk/ch-1.st @@ -2,7 +2,7 @@ "The Weekly Challenge 147" "Task 1 Truncatable Prime" "Usage: gst -S ch-1.st" -"Friday, January 13, 2022 PM20:30:44 UTC" +"Thursday, January 13, 2022 PM20:30:44 UTC" Smalltalk at: #Primes put: nil. -- cgit