Skip to content

Commit d50c09d

Browse files
author
梶塚太智
committed
Update prime.stk
1 parent cb34c18 commit d50c09d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

examples/prime.stk

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@
3131
(終了します) print
3232
0 exit
3333
) (
34-
number prime eval
35-
( number (は素数です) concat print )
36-
( number (は素数ではありません) concat print )
34+
now-time (start) var
35+
number prime eval
36+
now-time start sub (time) var
37+
( number (は素数です。実行時間:) concat time concat (秒) concat print )
38+
( number (は素数ではありません。実行時間:) concat time concat (秒) concat print )
3739
flag if
3840
)
3941
number (exit) find if

0 commit comments

Comments
 (0)