Skip to content

Instantly share code, notes, and snippets.

@ssartell

ssartell/7.cs Secret

Created May 29, 2018 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssartell/0428a276ceb9add0e49babe7208b34d7 to your computer and use it in GitHub Desktop.
Save ssartell/0428a276ceb9add0e49babe7208b34d7 to your computer and use it in GitHub Desktop.
/* 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