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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <math.h> | |
int main(){ | |
int n; | |
printf("Enter a number\n"); | |
scanf("%d",&n); | |
if(isPrime(n)){ | |
printf("Is prime number\n"); | |
}else{ |
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 ContactChooser extends ActionBarActivity{ | |
@SuppressLint("NewApi") | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_contact_chooser); | |
Cursor cursor=getContentResolver().query( | |
ContactsContract.CommonDataKinds.Phone.CONTENT_URI,null,null,null,null,null |
NewerOlder