Python Forum
Creating a program to look for the largest prime number of a number
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating a program to look for the largest prime number of a number
#5
(Sep-07-2018, 04:57 AM)Gribouillis Wrote:
(Sep-02-2018, 11:53 PM)Wikki14 Wrote: put all the factors into a list and then run a prime number program
The smallest factor (after 1) is necessarily a prime number. If you find it, you can divide x by this factor.
then after you divide x by this (smallest) factor, apply all this to the quotient you get. its smallest factor is also prime ...
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
RE: Creating a program to look for the largest prime number of a number - by Skaperen - Sep-08-2018, 12:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Printing the code line number arbiel 2 192 Jun-15-2024, 07:37 PM
Last Post: arbiel
  Finding the price based on industry and number of transactions chandramouliarun 1 1,072 Jun-04-2024, 06:57 PM
Last Post: marythodge4
Music Python Script Repeating Number When Saving Facebook Photos ThuanyPK 2 269 May-13-2024, 10:59 PM
Last Post: ebn852_pan
  intering int number akbarza 1 371 Apr-28-2024, 08:55 AM
Last Post: Gribouillis
Brick Number stored as text with openpyxl CAD79 2 751 Apr-17-2024, 10:17 AM
Last Post: CAD79
  [SOLVED] Pad strings to always get three-digit number? Winfried 2 488 Jan-27-2024, 05:23 PM
Last Post: Winfried
  Prime number detector Mark17 5 971 Nov-27-2023, 12:53 PM
Last Post: deanhystad
  Create X Number of Variables and Assign Data RockBlok 8 1,190 Nov-14-2023, 08:46 AM
Last Post: perfringo
  find the sum of a series of values that equal a number ancorte 1 590 Oct-30-2023, 05:41 AM
Last Post: Gribouillis
  capturing multiline output for number of parameters jss 3 926 Sep-01-2023, 05:42 PM
Last Post: jss

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020