This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* LINQ Puzzle #7 ******************************************************* | |
Description: Given an integer n, find all the prime numbers less than or equal to n. | |
Sample Input: n = 11; | |
Sample Output: {2, 3, 5, 7, 11} | |
************************************************************************/ | |
// Given: | |
var n = 120; | |
// Your solution goes here: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment