Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return array of all prime numbers from 0 to x #41

Open
ameyunaikgithub opened this issue Oct 12, 2017 · 2 comments
Open

return array of all prime numbers from 0 to x #41

ameyunaikgithub opened this issue Oct 12, 2017 · 2 comments

Comments

@ameyunaikgithub
Copy link

ameyunaikgithub commented Oct 12, 2017

Input: number
Output: array

Examples:
Input: 7
Output: 1, 2, 3, 5, 7

@songz songz changed the title Print all prime numbers from 0 to 100 return array of all prime numbers from 0 to x Oct 13, 2017
@seemcat
Copy link

seemcat commented Oct 16, 2017

  • THIS IS FOR LESSON 2: ARRAYS & OBJECTS *
    PLEASE CHANGE THE TITLE TO: Lesson 2: return array of all prime numbers from 0 to x

@bunnydeviloper
Copy link

isn't the output should only be "2, 3, 5, 7"? (since 1 is not considered prime number)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants