Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7490895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:47:05+00:00 2026-05-29T15:47:05+00:00

Is this a ‘real’ task, that can be written on any language ( C/C++,

  • 0

Is this a ‘real’ task, that can be written on any language ( C/C++, for example )

So, my task is ‘generate’ random number with length over 50 digits ( maximum = 200 )?

Then, i must check this number on primality test.

So, is this task ‘real’ and how many time/resources it will consume?

alternative way is to generate prime Mersenn numbers or other numbers from special class ( which class could be used? )

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T15:47:06+00:00Added an answer on May 29, 2026 at 3:47 pm

    There are efficient probabilistic algorithms for primality testing like Miller-Rabin that are usually used for such purposes.

    Picking a random number and testing for primality using a randomized algorithm is efficient since the density of primes guarantees you that for n-bit numbers you need to pick around n numbers to test.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a bit of a long shot, but if anyone can figure it
This most be the second most simple rollover effect, still I don't find any
This error Thu Apr 8 20:24:15 iPod-touch appname[947] <Error>: Error: Embedded profile header length
This has got to be a FAQ, so can someone please just direct me
This is beyond both making sense and my control. That being said here is
This seems 101-level, but I can't find an answer! (instead I find links to
This is probably basic stuff, but I can't find the clear answer anywhere.. Lets
Does anyone know how can I replace this 2 symbol below from the string
This walkthrough says you can create a WPF datagrid in one line but doesn't
This is an example of the code am using. I use a modified version

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.