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
"Create a resource group and storage account (V2, Standard_LRS, with identity)" | |
"" | |
$AppName = Read-Host 'What is the storage accounts name?' | |
$Location = "West Europe" | |
$ResourceGroupName = "${AppName}-group" | |
"" | |
$confirmation = Read-Host "Are you Sure You Want To Proceed (typ y)" |
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
"Create a resource group, app service plan and web app (West Europe, Linux on F1)" | |
"" | |
$AppName = Read-Host 'What is the app name?' | |
$Location = "West Europe" | |
$ResourceGroupName = "${AppName}-group" | |
$AppServicePlanName = "${AppName}-plan" | |
"" |
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 static class PrimeNumbers | |
{ | |
private static BigInteger GeneratePrime(int bitsize) | |
{ | |
var i = 0; | |
BigInteger p; | |
using (var rng = RandomNumberGenerator.Create()) | |
{ | |
var bytes = new byte[bitsize / 8]; | |
do |