結果

問題 No.106 素数が嫌い!2
ユーザー matriematrie
提出日時 2020-12-23 08:32:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 2,101 ms / 5,000 ms
コード長 147 bytes
コンパイル時間 142 ms
コンパイル使用メモリ 11,876 KB
実行使用メモリ 73,952 KB
最終ジャッジ日時 2023-10-21 15:02:39
合計ジャッジ時間 22,538 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,307 ms
58,140 KB
testcase_01 AC 520 ms
42,292 KB
testcase_02 AC 510 ms
42,292 KB
testcase_03 AC 516 ms
42,292 KB
testcase_04 AC 1,293 ms
58,140 KB
testcase_05 AC 2,044 ms
73,952 KB
testcase_06 AC 2,101 ms
73,952 KB
testcase_07 AC 2,078 ms
73,952 KB
testcase_08 AC 624 ms
42,292 KB
testcase_09 AC 620 ms
43,684 KB
testcase_10 AC 2,035 ms
73,952 KB
testcase_11 AC 1,190 ms
56,348 KB
testcase_12 AC 1,957 ms
72,700 KB
testcase_13 AC 500 ms
42,292 KB
testcase_14 AC 504 ms
42,292 KB
testcase_15 AC 501 ms
42,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np
n,k=map(int,input().split())
l=np.array([0]*n)
for i in range(2,n+1):
	if l[i-1]<1: l[i-1::i]+=1
print(sum(x>=k for x in l[1:]))
0