Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #187: Generate Prime Numbers

johnemery
11 - Bolide

Looks like my initial inclination to run through all possible combinations was virtually identical to many of the previous entries. This is the naïve and most obvious approach.

 

For fun, I ran the workflow for larger values of N to see how long it took:

N = 1000 - 2.1 seconds (168 primes)

N = 10,000 - 79 seconds (1,229 primes)

 

Spoiler
Capture.PNG

 

SamGon
7 - Meteor
Spoiler
Assuming the prime numbers divided by 2 and divided by 3 would result in a decimal for both answers, I used the formula tool and Filter to check for these scenarios with the understanding 2 and 3 are the exceptions to the rule.
saravanasriram
7 - Meteor

My Solution attached

Spoiler
solution.png
ponraj
13 - Pulsar

Here is my solution 

 

Spoiler
Capture.PNGCapture2.PNGCapture1.PNG
Ankita_M
5 - Atom

Here's my solution:

This works well for any set of numbers. The range should be written in the text input. 

rmassambane
10 - Fireball
 
danespoors
8 - Asteroid

Very basic attempt at it but it seems to work nicely enough.

 

Regards,


Dane.

maheensayeed
8 - Asteroid

Here is my solution

BenMoss
ACE Emeritus
ACE Emeritus

I went for the brute force method...

Neetu
8 - Asteroid

my solution