We've recently made an accessibility improvement to the community and therefore posts without any content are no longer allowed. Please use the spoiler feature or add a short message in the message body in order to submit your weekly challenge.

Weekly Challenge

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

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

We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!

Submit Feedback

Challenge #187: Generate Prime Numbers

johnemery
10 - Fireball

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.
PrabhuKanagaraj
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
8 - Asteroid
 
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
17 - Castor
17 - Castor

I went for the brute force method...

Neetu
8 - Asteroid

my solution