結果

問題 No.2750 Number of Prime Factors
ユーザー rururun
提出日時 2024-06-13 09:21:15
言語 Swift
(6.0.3)
結果
WA  
実行時間 -
コード長 202 bytes
コンパイル時間 15,163 ms
コンパイル使用メモリ 120,972 KB
実行使用メモリ 9,344 KB
最終ジャッジ日時 2024-06-13 09:21:31
合計ジャッジ時間 3,557 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 17 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

let n = Int(readLine()!)!
let pr = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79]
var x = 2, k = 0, ans = 0
while x <= n{
	ans += 1
	k += 1; x *= pr[k]
}
print(ans)
0