+ Reply to Thread
Results 1 to 4 of 4

prime number

  1. #1
    Registered User
    Join Date
    04-03-2013
    Location
    ewyork
    MS-Off Ver
    Excel 2003
    Posts
    12

    Post prime number

    hi


    in excell 2010


    I want column A decomposition into prime number and then write result in column B


    for example

    A........................... B



    12..........................2^2×3

    13 .........................13

    10..........................2×5

    8...........................2^3

    23 .........................23

    30.........................2×3×5

    ............................. ......



    please give me a vba code
    Last edited by abbccc; 04-03-2013 at 06:09 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: prime number

    See this thread
    [SOLVED] how do I find prime factors of a number
    And this link
    Chip Pearson - Testing Prime Numbers In Excel
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: prime number

    Also,

    It has come to our attention you have violated Rule 4 of our Forum RULES. Don't Private Message, Visitor message or email Excel questions to moderators or other members. (Or Access, Word, etc.)

    All questions and answers will benefit other posters like yourself. The point of having a public forum is to share solutions to common (and sometimes uncommon) problems with all members.

    Breaking this rule is considered harrasment by most of our contributors and will not be tolerated. Repeat offense could lead to permanent ban, so do take this caution to heart.

    Post your question in a public thread and our many contributors will come to you to assist, especially if the title is accurate (see Rule #1) and you include a sample desensitized workbook that makes it easy for others to try and help.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: prime number

    Quote Originally Posted by abbccc View Post
    hi
    I want column A decomposition into prime number and then write result in column B
    ...
    please give me a vba code
    if you're not happy with answers received, here's a simple VBA, that you won't find on Google.
    It'll give you the prime factors for any positive integer or set of positive integers in Col A up to the full number display abilities (15 digits) of an excel worksheet.
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1