Test more to see if it s first WITHOUT using the function Q & A... Possible?

We challenge each other in my place with LabVIEW challenges. So I threw a bunch of examples for this weeks challenge which requires finding numbers first, but put aside from a hack...

Well, take a look at my code for the principal sum of the Presentation of NOR-week 2016. The two sieves (Eratosthenes, Sundaram) are not directly based on Q & R and could easily be rewritten to not use it (for example by replacing the innermost loop with a while loop and put an end to a comparison etc...) Try it!)

Of course you can also write your own Q & R of other primitives, for example using newton-raphson. I have a writing very long ago for one of the coding challenges to support populations of arbitrary resolution.

You can also use the ordinary division and see if the result is equal (or enough, due to the limitations of the DBL close) to the result being rounded up to the nearest whole number.

Of course the primality tests of a very large number (lots and lots of numbers) is a specialty of mathematics.

Tags: NI Software

Similar Questions

Maybe you are looking for

  • Pavilion: Sound card for audio capture

    Don't know model #. The control panel in his says my default device's stereo IDT High Def Audio CODEC. Indicates the line to IDT HD Audio CODEC is not plugged in (under the heading says currently unavailable rear mic and mic) I have a jack online, bu

  • My lifecam vx-800 is dark

    My lifecam vx-800 works, but its too dark yesterday... all the settings are default... What is the problem there?

  • Headless service no longer works

    Hi all! I'm stuck with a problem since a few days, the part without head of my application is unbootable after the creation and execution of Momentics. I already have 3 versions of BlackBerry World works, so I know that the code was working previousl

  • BlackBerry Z10 RESTORING EMAILS & SMS from a BACKUP

    Before I embark on an attempt to synchronize contacts from my boss about his Z10 using new long-awaited USB cable, I'm a little worried that this month of MAY just add another batch of the couple of thousands of contacts that I downloaded when we mad

  • AVF hm1672 headset problem

    I bought a new headset that is hm1672 avf but thr is not detected through the atrium of sound. IM using windows 7 and realtek. Can anyone hlp?