LoginSignup
1
1

More than 5 years have passed since last update.

Project Euler Q3 【最大の素因数】

Last updated at Posted at 2017-09-29

Project Eulerをワンライナーで解いてみる。
間違っていたらコメントください。

問題

13195 の素因数は 5, 7, 13, 29 である.

600851475143 の素因数のうち最大のものを求めよ.

解答

factor 600851475143 |
awk '$0=$NF'
6857

答え合わせ

こちらのサイト様と一致していればOKとした。
http://kingyojima.net/pje/003.html

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1