This file contains hidden or 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
public class SendEmail | |
{ | |
public static void Email(Context context, string emailTo, string emailCC, string subject, string emailText, List<string> filePaths) | |
{ | |
var email = new Intent(Intent.ActionSendMultiple); | |
email.SetType("text/plain"); | |
email.PutExtra(Intent.ExtraEmail, new string[]{emailTo}); | |
email.PutExtra(Intent.ExtraCc, new string[]{emailCC}); | |
This file contains hidden or 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
long sum = 0; | |
long n = 2000000; | |
bool[] e = new bool[n];//by default they're all false | |
for (int i = 2; i < n; i++) | |
{ | |
e[i] = true;//set all numbers to true | |
} | |
//weed out the non primes by finding mutiples | |
for (int j = 2; j < n; j++) | |
{ |
NewerOlder